subject

Java 3.30 LAB*: Program: Painting a wall (1) Prompt the user to input a wall's height and width. Calculate and output the wall's area. (2 pts) Note: This zyLab outputs a newline after each user-input prompt. For convenience in the examples below, the user's input value is shown on the next line, but such values don't actually appear as output when the program runs. Enter wall height (feet): 12.0 Enter wall width (feet): 15.0 Wall area: 180.0 square feet (2) Extend to also calculate and output the amount of paint in gallons needed to paint the wall. Assume a gallon of paint covers 350 square feet. Store this value using a final double variable. (2 pts) Enter wall height (feet): 12.0 Enter wall width (feet): 15.0 Wall area: 180.0 square feet Paint needed: 0.5142857142857142 gallons (3) Extend to also calculate and output the number of 1 gallon cans needed to paint the wall. Hint: Use a math function to round up to the nearest gallon. (2 pts) Enter wall height (feet): 12.0 Enter wall width (feet): 15.0 Wall area: 180.0 square feet Paint needed: 0.5142857142857142 gallons Cans needed: 1 can(s)

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 10:30, brandon1748
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
image
Computers and Technology, 25.06.2019 08:30, kammie89
How do i comment on answers? there's one answer i'm confused about but i don't know how to comment on it
Answers: 2
image
Computers and Technology, 25.06.2019 12:00, keaton846
Bachelor’s degrees are typically earned in a. 1-2 years b. 2-3 years c. 3-4 years d. 4-5 years
Answers: 1
image
Computers and Technology, 25.06.2019 13:00, LoneWolves
Ok so im actually just wondering can you change you username
Answers: 2
You know the right answer?
Java 3.30 LAB*: Program: Painting a wall (1) Prompt the user to input a wall's height and width. Cal...

Questions in other subjects:

Konu
Mathematics, 24.08.2019 17:50
Konu
Mathematics, 24.08.2019 17:50
Konu
Mathematics, 24.08.2019 17:50
Konu
Mathematics, 24.08.2019 17:50