Question: Write a C + + program that takes the radius of a sphere ( a double or floating - point number ) as input and
Write a C program that takes the radius of a sphere a double or floatingpoint number as input and then outputs the sphere's:
Diameter x radiusdiameter radius
Circumference diameter x picircumference diameter math.pi
Surface area x pi x radiussurface area mathpiradiusradius
Volume x pi x radiusvolume mathpiradiusradiusradius
Below is an example of the program input and output:
displayintroduce a message of what the program will accomplish
radius
diameter :
circumference :
surface area :
volume :
Document every block of the program codes.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
