Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

12. Why is it wise to bid conservatively in a commonvalues auction?

Answered: 1 week ago

Question

What is the purpose of a firewall?

Answered: 1 week ago