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).
Write a JAVA procedural
- provide commented code with explanation in every step
HINT: You can round down to an integer, getting rid of spurious decimal places, using the integer cast operator (int).
THIS PROGRAM MUST:
- use input instructions
- use variables
- use final variables
- use arithmetic expressions
- be split in to methods which each return a result
Step by step
Solved in 2 steps