Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program to calculate how much weight a spherical balloon filled with helium will lift. Helium will lift 1.03 grams/liter or 1.03 kg/cubic meter.
Write a program to calculate how much weight a spherical balloon filled with helium will lift. Helium will lift 1.03 grams/liter or 1.03 kg/cubic meter. The volume of a balloon can be calculated as volume = 4/3 pir^3 where r is the radius of the balloon. Knowing the volume of the balloon, you can multiple it by 1.03 and get the lifting power of the balloon. A balloon that has a radius of half a meter (a diameter of one meter), can lift approximately 0.539307 kg /* Program to calculate the lifting power of a balloon. yourname GEEN163 August 31, 2015 */ public class Balloon { public static void main (String[] unused) { Create an object of the Scanner class for keyboard input */ /*Define variables to hold the radius, volume and lift. */ /* Prompt the user and read the radius of the balloon. */ /* Calculate the volume of the balloon */ /* Calculate the lift of the balloon/Display the lifting power */ } } It is easier to measure the diameter of balloon than its radius. Modified the program to read in the diameter of the balloon. After you read in the diameter, divided it by 2 to get the radius. Convert the program to use feet and pounds. A balloon ca lift approximately 0.062425 pounds per cubic foot. A balloon with a diameter of 12.0 feet can lift approximately 56.48080936 pounds
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