(follow the template below when writing the program) 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. The final answer should be given as an integer (rounded down) as below. - EXPLAIN HOW YOUR PROGRAM WORKS - Write a program that uses input instructions -Write a program that uses variables - Write a program that uses final variables - Write a program that uses arithmetic expressions - Write a program that is split in to methods at least one of which returns a result - Provide commenrted code with explanation in every step

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

(follow the template below when writing the program)

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. The final answer should be given as an integer (rounded down) as below.

- EXPLAIN HOW YOUR PROGRAM WORKS

- Write a program that uses input instructions

-Write a program that uses variables

- Write a program that uses final variables

- Write a program that uses arithmetic expressions

- Write a program that is split in to methods at least one of which returns a result

- Provide commenrted code with explanation in every step

import java.util.Scanner; // Needed to make Scanner available
class name // change the name to something appropriate
{
public static void main (String [] a)
{
method_call ); //Change this to a call to the method doing the work
System.exit(0);
}
// Add all methods the program uses here
}
Transcribed Image Text:import java.util.Scanner; // Needed to make Scanner available class name // change the name to something appropriate { public static void main (String [] a) { method_call ); //Change this to a call to the method doing the work System.exit(0); } // Add all methods the program uses here }
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
What is the balloon volume (in m3)? 0.07
Your room volume is 171.6 m3.
You need 2451 balloons.
(in cm)? 330
Transcribed Image 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 What is the balloon volume (in m3)? 0.07 Your room volume is 171.6 m3. You need 2451 balloons. (in cm)? 330
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Program on Numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education