esign a class named "SolidFigures" having the following data members and member functions: Data Members: float vol : stores the volume of the selected solid figure.(cube/cuboid/cylinder) char ch : stores the menu choice(C/B/Y/E) entered by the user Member Functions: void menu() : displays the menu options and accepts the menu choice from the user. void display() : displays the volume of the selected solid figure, using switch-case construct. The menu choice will be as follows: C. Cube B. Cuboid Y. Cylinder E. Exit You need to define a main( ) function to invoke the functions of the above class. [ Volume of Cube = length ^ 3 Volume of Cuboid = length * breadth * height Volume of Cylinder = π ((radius)^2) * height ]
Answers
Answered by
0
menu options and accepts the menu choice from the user. void display() : displays the volume of the selected solid figure, using switch-case construct. The menu choice will be as follows: C. Cube B. Cuboid Y. Cylinder E. Exit You need to define a main( ) function t
Explanation:
please follow me please
Similar questions