Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need to write this program in c++ Program5 Calculate Cost of a Paint Job A painting company has determined that for every 100 square
I need to write this program in c++
Program5 Calculate Cost of a Paint Job A painting company has determined that for every 100 square feet of wallo 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 ne pa per gallon oom I: Enter the area of all space in squarg feet: 1 oon 2 Enter the area of all space om3 Enter the area of Hall space oom 4: Enter the area of wall space in square feet 12e STIMATED CHARGES allons of paint: rice per gallon: $15.ee aint cost: ours of labor: 92.ee otal charges ress any key to continue $167.ee 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 gtWallSquareFeet); int numberOfGallons(double); double laborHours(double); void displayCost(int, double, double)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started