Question: i need to write this in c++ rogram5 Calculate Cost of a Paint Job A painting company has determined that for every 100 square feet
i need to write this in c++
rogram5 Calculate Cost of a Paint Job A painting company has determined that for every 100 square feet of wall space (a global named constant), 1 gallon of paint and 8 hours of labor will be required. The company charges $20.00 per hour for labor (a global named constant). Write a modular program that allows the user to enter the number of rooms that are to be painted and the price of the paint per gallon. It should also ask for the square feet of wall space in each room. It should then display the following data: * The number of gallons of paint required - The hours of labor required The cost of the paint - The labor charges - The total cost of the paint job Input validation: Do not accept a value less than 1 for the number of rooms. Do not accept a value less than $10.00 for the price of paint. Do not accept a negative value for square footage of wall space The function prototypes are: // Function prototypes int getNumberOfRooms; double getPaintPrice; double getWallSquareFeet() int numberOfGallons(double) double laborHours(double); void displayCost(int, double, double); nter the number of rooms to be painted: 4 nter the price of the paint, per gallon: 15 Room 1: Enter the area of wall space in square feet: 100 Room 2: Enter the area of wall space in square feet: 150 oom 3: Enter the area of wall space in square feet: 90 Room 4: Enter the area of wall space in square feet: 12e STIMATED CHARGES Gallons of paint 5 Price per gallon: $15.0e aint cost: ours of labor: Total charges $167.00 Press any key to continue . . . $75 , 00 92.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
