Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

font may be a little small torpdf D Paint lob Estrnator.pdf >C esktop/Part%2OJob%20 Estimator.pdf Programming Assignment: Paint Job Estimator A painting company has determined that

image text in transcribed

image text in transcribed

image text in transcribed

font may be a little small

torpdf D Paint lob Estrnator.pdf >C esktop/Part%2OJob%20 Estimator.pdf Programming Assignment: Paint Job Estimator A painting company has determined that for every 115 square feet of wall space, one gallon of paint and eight hours of labor will be required. The company charges $18.00 per hour for labor. 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 galilons of paint required The hours of labor required The total cost of the paint .The total labor charges The total cost of the paint job Input Your program should ask the user for the following data The number of rooms to be painted The square feet of wall space for each room .The price of paint per gallon After the user enters the number of rooms to be painted, use a for loop that allows the user to enter the square feet of wall space for each room. For example, if the user enters 3 for the number of rooms to be painted, your for loop should display, on separate lines, Enter the square feet of wall space for room 1:, and then display Enter the square feet of wall space for room 2:, and then Enter the square feet of wall space for room 3: loops once for each room and Your program should then ask the user to enter the price of paint per gallon. Input Validation Your program should check for valid input according to the following Do not accept a value less than 1 for the number of rooms. Do not accept a value less than 1 for the square feet of wall space for any room. Do not accept a value less than 0 for the price of paint per gallon. A value of 0 for the price of paint is acceptable (maybe they are getting free paint) . . . Formulas The formulas for the gallons of paint required and the labor hours required are shown in the following table: Formula total square feet/115 ltotal square feet/115)8 Variable allons of paint labor hours required

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

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

Students also viewed these Databases questions

Question

1 . Television News channels importantance of our Life pattern ?

Answered: 1 week ago

Question

What about leadership lessons from particularly good or bad bosses?

Answered: 1 week ago

Question

How would you assess the value of an approach like this?

Answered: 1 week ago

Question

When would you use one approach, and when would you use another?

Answered: 1 week ago