Question: Modify the main() function in Program 10.5 to create four rooms: hall, kitchen, dining room, and living room. The dimensions for these rooms are as

Modify the main() function in Program 10.5 to create four rooms: hall, kitchen, dining room, and living room. The dimensions for these rooms are as follows:

Hall: length = 12.40, width = 3.5

Kitchen: length = 14, width = 14

Living room: length = 12.4, width = 20

Dining room: length = 14, width = 10.5.

Your program should display the area of each room and the total area of all four rooms combined.

Design:

Code:

Output:

its a c++ assignment

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!