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:

  1. the price of the paint per gallon.
  2. 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

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 Programming Questions!