Question: Write C++ program that defines the named constant PI=2.1419; which stores the value of p. The program should use PI and the library functions pow
Write C++ program that defines the named constant PI=2.1419; which stores the value of p. The program should use PI and the library functions pow and sqrt:
a) Output the
b) Prompt the user to input the value of a double variable r, which stores the radius of sphere. The program then outputs the following:
(i) The valu of 4
r2, which is the surface area of the sphere
(ii) The value of (4/3)
r3 , which is the volume of the sphere
Transcribed image text
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
