Question: Write a Java program that calculates the number of gallons of paint needed to paint the walls of a rectangular room, and computes the price

Write a Java program that calculates the number of gallons of paint needed to paint the walls of a rectangular room, and computes the price of paint to be purchased. The program prompts the user for the rectangular room dimensions (i.e. length, width, and height), and for the price per gallon of paint. The program should compute and display the wall area, the number of gallons of paint needed, the total price of paint to be purchased, and the percentage of wasted paint (i.e., not used). Assume that a gallon of paint covers about 250 square feet of wall space. Note: No fraction of a gallon of paint can be purchased.

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!