Question: Actual output Expected output height: 60 width: 50 numberofwindowS: 3Number of windows: 3 Area: 2982.8 Wall width: 60 Wall height: 5e Area: 2982.0 fail Test

 Actual output Expected output height: 60 width: 50 numberofwindowS: 3Number of

Actual output Expected output height: 60 width: 50 numberofwindowS: 3Number of windows: 3 Area: 2982.8 Wall width: 60 Wall height: 5e Area: 2982.0 fail Test 2 Actual output Expected output height: 120 width: 1ee numberofwindowS: 1 Number of windows: 10 Area:11940.0 Wall width: 120 wall height: 108 Area: 11940. fail Test 3 Actual output Expected output height: 40 width: 57.5 numberofwindowS: 6 Number of windows: 6 Area : 2264.0 Wall width: 40 wall height: 57.5 Area: 2264.0 fail Submitted files WallArea.java: 1 import java.util.scanner; 3 public class WallArea 5 public static void main(string[] args) final int areaofWindows 6 Scanner in - new Scanner (System.in); 1e System.out.print("height: ") double height- in.nextDouble); 13 14 15 16 17 18 19 28 21 System.out.print("width: ") double width- in.nextDouble); System.out.print("numberofwindowS: "); double numberOfWindows- in.nextDouble); / Prompt for and read the width and height 23 24 25 26 27 / and the number of windows / Compute the area of the wall without the windows System . out . printf("Area : %.1f", width*height-(numberOfWindows*areaofwindows))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!