Question: i need code in java Create a program to compute the Wall Area of a room and calculate the Paint(gallons) and Price ($) needed to

i need code in java Create a program to compute the Wall Area of a room and calculate the Paint(gallons) and Price ($) needed to decorate it. We assume a gallon of paint covers about350 square feet of wall space. And that painters can buy paint gallons or fractions at thesame price. Paint is $67 a gallon. The program will use Main() and TWO additionalmethods.Main(), will prompt users for the length, width, and height of a rectangular room. Mostimportant, Main() will pass the THREE values (L, W, H) to 2nd METHOD:- 2nd method calculates the wall area (wall area for a room = area of ALL FOUR walls...)- 2nd method passes area to 3rd METHOD that calculates # gallons needed and price $- 3rd method computes price based on $67/gallon (remember, we can assume painter will buyfractions of a gallon at same price as whole gallon)- 3rd method returns the price to the main() methodMain(), will then output the area, gallons needed, and price.For example, the cost to paint a 15-by 20-foot room with 10-foot ceilings is $134.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!