Question
I need a program in C++ and a flowchart using draw.io for the following problem: Paint Job Estimator: A painting company has determined that for
I need a program in C++ and a flowchart using draw.io for the following problem:
Paint Job Estimator:
A painting company has determined that for every 110 square feet of wall space, one gallon of paint and eight hours of labor will be required. The company charges $25.00 per hour for labor. (underlined items above should be global constants)
Write modular program that asks the user in MAIN to enter:
- the price of the paint per gallon.
- the square feet of wall space.
It should then share the 2 values with the appropriate modules listed below.
Input validation: Do not accept a value less than $5.00 for the price of paint. Do not accept a negative value for square footage of wall space.
Required Modules (DO NOT CREATE OTHER MODULES):
- main - gets price of paint per gallon and gets sqft of wall space to paint from user input
- totalPaint - accepts sqft and calculates # of gallons needed
- totalLabor - accepts sqft and calculates number of labor hours
- outputTotalCost - accepts the # of gallons needed, the price of paint, number of labor hours and displays the following:
- The number of gallons of paint required
- The total cost of the paint
- The hours of labor required
- The labor charges
- The total cost of the paint job
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