Write a program in C++ using classes and function overloading, to calculate volume of Cube, Cuboid and a Cylinder, the program

Status
Not open for further replies.
Oct 18, 2018
1
0
10
0
Write a program in C++ using classes and function overloading, to calculate volume of Cube, Cuboid and a
Cylinder, the program should allow user to enter values. Start by creating a class called Shape with float
member variables l, w and h and integer member variables a and r.
Note:
• Volume of a Cube = a3
• Volume of a Cylinder = πr
2h
• Volume of a Cuboid = l × w × h
• π = 3.14
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
M Apps General Discussion 2
A Apps General Discussion 1
Y Apps General Discussion 1
L Apps General Discussion 5
O Apps General Discussion 1
S Apps General Discussion 2
A Apps General Discussion 1
P Apps General Discussion 1
A Apps General Discussion 1
T Apps General Discussion 1
Y Apps General Discussion 1
I Apps General Discussion 2
T Apps General Discussion 1
S Apps General Discussion 2
P Apps General Discussion 1
M Apps General Discussion 6
U Apps General Discussion 2
V Apps General Discussion 5
P Apps General Discussion 1
S Apps General Discussion 1

Similar threads


ASK THE COMMUNITY