Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions