Question: Write C + + code for a program to calculate and display the volume and surface area of a closed cylinder from a given radius

Write C++ code for a program to calculate and display the volume and surface area
of a closed cylinder from a given radius and height. Hence, a prompt must be made
for radius and height and whose value can have fractional values.
Do the calculation only if both radius and height are greater than 0. Display
error message - be specific which one is not valid.
For the output, display the inputted radius, inputted height, volume and total
surface area.
Use this formula for calculating the volume.
volume =. radius ?2. height
Use this formula for calculating the total surface area.
Surface area radius radius height
 Write C++ code for a program to calculate and display the

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!