Write a JAVA procedural program for an artist who is creating art instillation “experiences” consisting of rooms totally full of balloons that people will walk around in. Different instillations will...


Write a JAVA procedural program for an artist who is creating art instillation “experiences” consisting of rooms totally full of balloons that people will walk around in. Different instillations will be in different sized rooms and different sized balloons so need different numbers of balloons to fill them. The salesperson will enter the length, width and height of the room in centimetres. Write separate methods to input each of these values (they may possibly call other general methods) and return the results. These three numbers are multiplied together to get the volume of the room. This should by then be converted to m3 (calculated by dividing the volume by 1,000,000). This is then divided by the volume taken up by each balloon in m3 as given by the user. Print out the final number of balloons to be ordered along with the intermediate results as in the examples below. provide commented code with explanation in every step.The final answer should be given as an integer (rounded down) as seen in the image below.



HINT: You can round down to an integer, getting rid of spurious decimal places, using the integer cast operator (int).



An example run of the program is as follows (numbers in bold are typed in by the user, either pop-up boxes<br>or the console may be used for input and output):<br>Length of the room (in cm)? 4600<br>Width of the room (in cm)? 310<br>Height of the room (in cm)? 200<br>What is the balloon volume (in m3)? 0.03<br>Your room volume is 285.2 m3.<br>You need 9506 balloons.<br>Another example run:<br>Length of the room (in cm)? 1000<br>Width of the room (in cm)? 520<br>Height of the room (in cm)? 330<br>What is the balloon volume (in m3)? 0.07<br>Your room volume is 171.6 m3.<br>You need 2451 balloons.<br>

Extracted text: An example run of the program is as follows (numbers in bold are typed in by the user, either pop-up boxes or the console may be used for input and output): Length of the room (in cm)? 4600 Width of the room (in cm)? 310 Height of the room (in cm)? 200 What is the balloon volume (in m3)? 0.03 Your room volume is 285.2 m3. You need 9506 balloons. Another example run: Length of the room (in cm)? 1000 Width of the room (in cm)? 520 Height of the room (in cm)? 330 What is the balloon volume (in m3)? 0.07 Your room volume is 171.6 m3. You need 2451 balloons.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here