Question: Write a program that defines the named constant Pl, which stores the value of t. The program should use Pl and the predefined functions to

 Write a program that defines the named constant Pl, which stores

Write a program that defines the named constant Pl, which stores the value of t. The program should use Pl and the predefined functions to accomplish the following: 1. Output the value of Vrt 2. 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: a. The value of 4 tr, which is the surface area of the sphere. b. The value of (4/3) tr> which is the volume of the sphere. Enter the value of r: 3.5 The value of square root of pi is: 1.772 The surface area of the sphere is: 153.86 The volume of the sphere is: 179.503

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!