Question: Please answer this in Java and follow the steps Must use JOptionPane class. ... I have uploaded the example as well. A painting company has
Please answer this in Java and follow the steps Must use JOptionPane class. ... I have uploaded the example as well.


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. Use: 1. JOptionPane Class class 2. Multiple methods a. getRooms() prompts the user for number of rooms b. getSquare Feet() calculates area of rooms c. getTotal() calculates the total for the job d.getPricePerGallon() prompts user to enter price per gallon of paint e. getPaintCost() calculates total cost of paint f. getGallons() calculates the gallon of paint g. getHours() calculates total hours h. getLabor() calculates total labor cost Example Input Input X ? How many rooms to paint? ? Enter the square feet for room number 1 100 OK Cancel OK Cancel fuqnl tugal S 19dmun mooi 101 1991 916 upe od 1913 E 19dmun mooi 101 1991 916Ups 9rt 1913 OET 9 ost leons leons Input Message X ? Enter the price of paint per gallon. 35 i The total estimated cost is $544.78 OK Cancel OK
Step by Step Solution
There are 3 Steps involved in it
To fix the program you need to ensure it calculates the total cost correctly and matches the steps d... View full answer
Get step-by-step solutions from verified subject matter experts
