Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Main topics: Basic Java program Variable in Java Arithmetic Expressions Programmatic output Program Specification: Write a Java program by doing the following: ? Establish three

Main topics:

Basic Java program

Variable in Java

Arithmetic Expressions

Programmatic output

Program Specification:

Write a Java program by doing the following:

? Establish three variables to hold the three measurements which are required to define a mom width, height), as well as a fourth variable to hold the units that the measurements are being in.

? Set the values of each of the four variables to match that of a room that you are familiar with.

? Calculate the total surface area of only the floor of the room defined by your chosen dimensions. (Your formula must work with any values that you could assign your three dimension variables)

? Calculate the total surreal. area of only the four walls of the room defined by your elitism dimensions. (Your formula nmst work with any udues that you could as.sign your darn. dimension variables)

? Display the surface area (in your units squared) of the floor of the room to the screen in a reasonable report format.

? Display the total surface area (in your units squared) of the four walls of' the room to the screen in a reasonable report format.

Grading

Sample run(s):

Given a length of 9.0 meters a vidth of 12.5 meters and a height of 8.25 meters

The room?s floor surface area is: 112.5 meters squared.

The room?s valls total surface area is: 354.75 meters squared.

Performance Indicator Readability and documentation Use of variables Use of Arithmetic instructions Functional requirements (0) 1 1 1 2 2222 1 3 2 3 3 2

Step by Step Solution

3.42 Rating (139 Votes )

There are 3 Steps involved in it

Step: 1

Here is the completed code for this problem Comments are included go through it learn how things wor... 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

Statistics For Business And Economics

Authors: Paul Newbold, William Carlson, Betty Thorne

8th Edition

0132745658, 978-0132745659

More Books

Students also viewed these Databases questions

Question

Where do emotions come from? What function do they serve?

Answered: 1 week ago