Question: Write a Java program by doing the following: Establish three variables to hold the three measurements which are required to define a rectangular box, (height,
Write a Java program by doing the following: Establish three variables to hold the three measurements which are required to define a rectangular box, (height, width, depth), as well as a fourth variable to hold the units that the measurements are being given in. Set the values of each of the four variables to match that of a box that you are familiar with. Calculate the total surface area of the box. Display the the total surface area of the box (in your given units squared) to the screen in a reasonable report format. Calculate the length and width of a single rectangular piece of wrapping paper, that is of sufficient size to completely cover (wrap) the entire surface area of the box (hint: there will be folds). Display the the length and width of this piece of wrapping paper (in your given units) to the screen in a reasonable report format.
****I have already calculated the surface area, I am struggling with how I am going to calculate the length and width of the wrapping paper with the surface area, what formula is used?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
