Question: Intro to JAVA please see below: In order to paint a wall that has a number of windows, we want to know its area. Each
Intro to JAVA please see below:
In order to paint a wall that has a number of windows, we want to know its area. Each window has a size of 2 ft by 3 ft. Write a program that reads the width and height of the wall and the number of windows, using the prompts
Wall width: Wall height: Number of windows:
Then print the area.
CODE:
// Import the Scanner class
public class WallArea { public static void main(String[] args) { // Declare a scanner
// Prompt for and read the width and height // and the number of windows
// Compute the area of the wall without the windows System.out.println("Area: " + area); } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
