Question: Write a program in c++ that calculates volume of two boxes, Box 1 and Box 2. Construct class Box. The class has public members :

Write a program in c++ that calculates volume of two boxes, Box 1 and Box 2. Construct class Box. The class has public members : length, breadth, height. Initialize the following values accordingly. Box 1 : Length = 5.0 , Breadth = 6.0 , Height = 7.0 Box 2 : Length = 10.0 , Breadth = 12.0, Height = 13.0 Sample Output : Volume of Box 1 : 210 Volume of Box 2 : 1560

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!