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

I am trying to get this question answered in Visual Basic 2010. Everytime I post

ID: 3646711 • Letter: I

Question

I am trying to get this question answered in Visual Basic 2010. Everytime I post it I am getting Java or C++.


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
Input validation: Do not accept a value less than 1 for the number of rooms. Do not accept a value less than $10.00 for the price of paint. Do accept a negative value for square footage of wall space.

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