Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Experts Guide To Database 2

Authors: Bruce L. Larson

1st Edition

0070232679, 978-0070232679

Students also viewed these Databases questions

Question

Describe ERP and how it can create efficiency within a business

Answered: 1 week ago

Question

Define procedural justice. How does that relate to unions?

Answered: 1 week ago