Create a program asks user for dimensions of box


Discuss the below:

Q: Using C++ write a program that:

1. asks the user for the dimensions of a box (width, height, and depth),

2. prints the volume of the box,

3. prints the volume of the largest cube that could fit inside the user's box, and

4. prints the volume of a sphere with a diameter equal to the largest dimension of the user's box.

You can use any if statement and switching but are not required to use any one.

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a program asks user for dimensions of box
Reference No:- TGS01937086

Now Priced at $25 (50% Discount)

Recommended (94%)

Rated (4.6/5)