Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following computer program: A helium balloon seller wishes to have a computer program to help with her business. When someone makes a purchase,
Consider the following computer program:
A helium balloon seller wishes to have a computer program to help with her business. When someone makes a purchase, they buy spherical balloons all of the same size, and she needs to know the total volume of helium needed to inflate them all. items are entered into the program the radius of a spherical balloon must include decimals so you can have radii like or or as well as or for examples and number of balloons bought. Then, your program should calculate the volume of ONE balloon. You will have to find a formula for the volume of a sphere to do this. Save the answer in a processing variable. Then, the total volume of all balloons needs to be calculated. This is easy since you know the volume of one balloon and you also know the number of balloons. This total volume of all balloons which is the amount of gas needed is then displayed, and that's all that is displayed, and then program stops.
Notes:
You will find that the quantity PI is involved. That is a constant, and should be noted as a processing variable.
This program has inputs, processing variables, and output. Use short, descriptive variable names with no spaces in them now, as you are looking forward to C coding soon.
Remember that a variable is either input, processing or output can't be more than one type, so be sure any variable is only listed in ONE category.
To check your work, suppose someone buys balloons, and the radius of each is inches. The total volume is cubic inches.
Write up an IPO chart for this problem. Please remember that the "Processing Variables" area is NOT done the way it is in your book. Save the action steps for the Algorithm section. The Processing section for the purposes of your handson work is just to be Processing Variables, as you see in the Instructor Comments.
Deskcheck your solution. Go through it slowly, step by step. This is the only way to insure it works. If it doesn't, you must fix it
You will never hand in your desk check but skipping it is dangerous!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started