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.