Implement the program to find the cost of painting a room -


You need to implement the program to find the cost of painting a room

Question: Can anybody figure out how to calculate number of gallons of paint needed and the total cost?

Program: Write a program to determine the cost of painting a room. 

The program should allow the user to enter the height in feet of a room, the width in feet of one side of a room, the width in feet of the other side of a room, the number of square feet that a gallon of paint covers, and the price per gallon of paint. 

The program should calculate the number of gallons of paint needed and display the total cost of painting the room.  (NOTE:  You can only buy the paint in gallon size cans.)

Here are some sample test data & results:

HEIGHT WIDTH A WIDTH B SQ. FT. COST/GAL GALLONS   TOTAL COST

    10             12               14                350         $32.98         2                  $65.96

    12             15               20                400         $26.97         3                   $80.91

Be sure to include comments. Comments should be included in the program to explain your calculations and program.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Implement the program to find the cost of painting a room -
Reference No:- TGS0952646

Expected delivery within 24 Hours