Question: Instructions Instructions Write a program that defines the named constant PI. cons! double PI = 3.14159, .which stores the value of . The program should
Instructions Instructions Write a program that defines the named constant PI. cons! double PI = 3.14159, .which stores the value of ". The program should use PI and the functions listed in Table 6-1 to accomplish the following . Output the value of ,. . Prompt the user to input the value of a double variable x , which stores the radius of a sphere. The program then outputs the following: . The value of 40mr! which is the surface area of the sphere . The value of (40/30jar, which is the volume of the sphere You should format your output like the following Surface area of the sphere: 4 . P! . 5.00 Volume of the sphere: 4 7 3 . PI . 5.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
