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
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