Write a program that defines the named constant PI, const double PI = 3.1419;, which stores the value of π. The program should use PI and the functions listed in Table 6-1 to accomplish the following:
a. Output the value of
.
b. Prompt the user to input the value of a double variable r, which stores the radius of a sphere. The program then outputs the following:
i. The value of
, which is the surface area of the sphere.
ii. The value of
, which is the volume of the sphere.
Reference:
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.