Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started