Question: Write a C++ program that allows the user to enter the radius of the moon and the percentage of the moon's face that appears illuminated.

 Write a C++ program that allows the user to enter the

Write a C++ program that allows the user to enter the radius of the moon and the percentage of the moon's face that appears illuminated. Then the program computes and outputs the surface area of that portion of the moon. The formula for the surface area of a segment of a sphere is: S=2R20 Where R is the radius of the sphere. O is the angle of the wedge in radians. Note: O can be calculated as the percentage of the moon's face multiplied by n. For example, if the percentage is 50%, will be 0.5 X 3.14. Also use 1738.3km as the radius of the moon

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!