1. class volume int cubevol(ints) — calculates and returns the volume of a cube (s^ * s^ * s) double spherevol(double r) - calculates and returns the volume of a sphere (4/3лr3) int cuboidvol(int 1, int w, int h)- calculates and returns the volume of a cuboid (l^ * w^ * h) void display() - accepts side of a cube, radius of a sphere, length, width & height of a cuboid. Calls cubevol(), spherevol() and cuboidvol() and displays answer.
Answers
Answered by
0
Answer:
(s^ * s^ * s)
Explanation:
class volume int cubevol(ints) — calculates and returns the volume of a cube (s^ * s^ * s) double spherevol(double r) - calculates and returns the volume of a sphere (4/3лr3) int cuboidvol(int 1, int w, int h)- calculates and returns the volume of a cuboid (l^ * w^ * h) void display() - accepts side of a cube, radius of a sphere, length, width & height of a cuboid.
Similar questions