Question
A remodeling company needs a program to determine the number of cans of paint needed to paint a room. Write a Java program that lets
A remodeling company needs a program to determine the number of cans of paint needed to paint a room. Write a Java program that lets the user enter the paint color, and the length and width of a room in feet as integers, and then calculates the total square footage of the room, and the number of cans of paint required. The height of the room is 8 feet, and a one-gallon can of paint covers 250 square feet. Change the paint color to all lowercase. You do not need to factor in the area for doors and windows, nor the floor or ceiling. Set up finals as needed.
Here is a sample report.
Enter color.....BLue
Enter length.....10
Enter width......12
Color = blue
Square Footage = 352
Cans = 1.408
Here is some syntax that might help. Remember the code does not have to be perfect, but I am looking for the steps to be in the correct order. Code the statements that will follow main in your answer.
import java.util.Scanner;
public class Paint { public static void main(String[] args) { Scanner scan = new Scanner (System.in);
System.out.print length = scan.nextInt();
System.out.println
}
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started