Answered step by step
Verified Expert Solution
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
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 requiredStep 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