Question: 5. (30 pts) Write a program that calculates the surface area of a cube (see the formula below). The user inputs the cube's side length
5. (30 pts) Write a program that calculates the surface area of a cube (see the formula below). The user inputs the cube's side length and your program will then print out the surface area of that cube. Your code must follow the output in the sample run below. Your program must be complete and correct, but you do not need to include comments. Here is the formula to calculate surface area given a cube's side length: surface area 6 side length)) / sample run: Enter the side length in meters: 1.5 The cube has a surface area of 13.50 square meters. import java util.Scanners public class CubeSurfaceArea ( public static void main(Stringl] args) f
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
