Question: -Could you please solve this assignment in c++ programming: determine the mass of ice cream in your ice cream cone by writing a script that

-Could you please solve this assignment in c++ programming:

determine the mass of ice cream in your ice cream cone by writing a script that does the following:

1. prompt for the height of your gelato (in inches)

2. prompt for the cone diameter (in inches). Note that this will also be the diameter of the gelato scoop that is above the cone

3. Convert cone height into feet .

4.Convert cone diameter into feet

5. Determine volume of cone for the volume of gelato that will fill the cone portion (neglect the cone thickness): Vcone = r2h

6. Determine volume of hemisphere of the volume of gelato above the cone: Vhemisphere = r 3

7. Determine total volume of gelato

8. Now, determine the mass of gelato, assuming 1 gallon gelato = 8 lbs and occupies 7.5ft3

9. Output the height of cone, the diameter, and pounds of gelato. Be sure to use units for the height/diameter feet

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!