Question: 1A. [35 points] Write a program to calculate how much weight a spherical balloon filled with helium will lift. Helium will lift 1.03 grams/liter or

 1A. [35 points] Write a program to calculate how much weight

1A. [35 points] 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 4 volume = ar 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 #include #include using namespace std; int main() { /* 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 */ return 0; } 1B. [10 points] It is easier to measure the diameter of balloon than its radius. Modify the program to read in the diameter of the balloon. After you read in the diameter, divide it by 2 to get the radius. 1C. [5 points] Convert the program to use feet and pounds. A balloon can lift approximately 0.062425 pounds per cubic foot. A balloon with a diameter of 12.0 feet can lift approximately 56.4808 pounds

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!