Question: 1 1 . 7 Ch 2 Program: Painting a wall ( Java ) ( 1 ) Prompt the user to input a wall's height and
Ch Program: Painting a wall Java
Prompt the user to input a wall's height and width. Calculate and output the wall's area. pts
Note: This zyLab outputs a newline after each userinput 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:
Enter wall width feet:
Wall area: square feet
Extend to also calculate and output the amount of paint in gallons needed to paint the wall. Assume a gallon of paint covers square feet. Store this value using a const double variable. pts
Enter wall height feet:
Enter wall width feet:
Wall area: square feet
Paint needed: gallons
Extend to also calculate and output the number of gallon cans needed to paint the wall. Hint: Use a math function to round up to the nearest gallon. pts
Enter wall height feet:
Enter wall width feet:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
