Question: Instructions PaintCalculator java 1 tnport Java.uti1.Scanner 2 public class PaintCalculator [ Assume that a gallon of paint covers about 350 square feet of wall space.

 Instructions PaintCalculator java 1 tnport Java.uti1.Scanner 2 public class PaintCalculator [

Instructions PaintCalculator java 1 tnport Java.uti1.Scanner 2 public class PaintCalculator [ Assume that a gallon of paint covers about 350 square feet of wall space. Create an application with a main() method that prompts the user for the length, width, and height of a rectangular room. Pass these three values to a method that does the following: public static votd natn (String args) 4 // Write your code here public static double computeArea (double length, double width, double height) . Calculates the wall area for a room // Write your code here 9 Passes the calculated wall area to another method that calculates and returns the number of gallons of paint needed Displays the number of gallons needed Computes the price based on a paint price of $32 per gallon, assuming that the painter can buy any fraction of a gallon of paint at the same price as a whole gallon public static double computeGallons (double area) // Write your code here 12 13 14 .Returns the price to the natn() method The main method displays the final price. For example: You will need 2.0 gallons The price to paint the room is $64.0

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!