Question: Write a program that will read a file named Rooms.dat containing the length and width for each room in a house. Length and width are

 Write a program that will read a file named Rooms.dat" containing

Write a program that will read a file named Rooms.dat" containing the length and width for each room in a house. Length and width are expressed in feet and inches using the format indicated in the example below. Write a C++ program to calculate the total area (in square feet) of the house by adding up the areas for each room. Display the total area on the screen. Assume that there are an unknown number of rooms. Example file (Rooms.dat")

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!