Main topics: Basic Java program Variable in Java

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.

 

Leave a Comment

Your email address will not be published. Required fields are marked *

GradeEssays.com
We are GradeEssays.com, the best college essay writing service. We offer educational and research assistance to assist our customers in managing their academic work. At GradeEssays.com, we promise quality and 100% original essays written from scratch.
Contact Us

Enjoy 24/7 customer support for any queries or concerns you have.

Phone: +1 213 3772458

Email: support@gradeessays.com

© 2024 - GradeEssays.com. All rights reserved.

WE HAVE A GIFT FOR YOU!

15% OFF 🎁

Get 15% OFF on your order with us

Scroll to Top