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

Project 7 Paint Job Estimator (Visual Basic) DESCRIPTION: A painting company has

ID: 3565029 • Letter: P

Question

Project 7 Paint Job Estimator (Visual Basic)


DESCRIPTION: 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 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 use input boxes to ask the user for the square feet of wall space in each room.
It should then display the following information:
The number of gallons of paint required

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