Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions