DESCRIPTION: A painting company has determined that for every 115 square feet of
ID: 3621751 • Letter: D
Question
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 ask for the square feet of wall space in each room.The program should have methods that return the following data: •
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.
You will write several methods to complete the processing of the lab. A description of the required methods follows. Additional methods may also be used.
main method: This method will drive the PaintJobEstimator program. The body of this method will call the method getRooms to get the number of rooms to be painted, it will pass that number to the method getSquareFeet to get the total number of square feet to be painted. When the total number of square feet is acquired, the method getTotal will be called to get the total cost. Lastly, the estimated cost for the paint job will be displayed to the user.
getRooms method: The getRooms method prompts the user for the number of rooms to be painted and returns rte value entered by the user.
getSquareFeet method: The getSquareFeet method calculates the total square feet. It will receive the parameter rooms, loop for each room get the square feed and compute the total square feet. Finally, the total square feet is returned to the user.
getTotal method: The getTotal method calculates the total job estimate. It should receive the number of square feet to be painted as a parameter. It will need to get the price per gallon of paint to be used, and determine the total cost of the paint. It will also need to determine the total labor cost. Then adding the two together gives the total cost of the job. This is returned to the user.
Explanation / Answer
I wrote the program, but will only post it for 350 KP
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.