Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A painting company has determined that for every 115 square feet or wall space,

ID: 3620463 • Letter: A

Question

A painting company has determined that for every 115 square feet or 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 program that allows the user to enter the number of rooms 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. The program should have methods that return the following:
* The number of gallons of paint required
* The hours of labor required
*The cost of the paint
*The labor charges
*The Total cost of the paint job

Then it should display the data on the screen

Explanation / Answer

Main module

Declare Quantityofpaint as int

Declare Laborhours ,Paintcost,Totalpaintcost as float

Declare Laborcharges,Totalcost,Wallspace as float

Display "Enter the total wall space to be painted in square units: "
Input Wallspace

Set Quantityofpaint = Wallspace

Set Laborhours = 8 * Wallspace

Display "Enter the price of paint per gallon"

Input Paintcost

Set Totalpaintcost = Paintcost * Wallspace

Display "Input the hours of labor: "

Input Laborhours

Set Laborcharges = 18 * Laborhours

Set Totalcost = Totalpaintcost + Laborcharges

Display "The number of gallons of paint required is " Quantityofpaint
Display "The hours of labor required is " Laborhours

Display "The cost of the paint is" Totalpaintcost

Display "The labor charges is " Laborcharges

Display "The total cost of the paint job is" Totalcost
End Main module

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote