Question: Question 4 [ 2 5 marks ] Write a program to take in the radius and angle of a slice of pie. The program should

Question 4[25 marks]
Write a program to take in the radius and angle of a slice of pie. The program should calculate the area, the perimeter and the arc length of the pie slice. Then, display the output.
An example of the output interface is:
Enter the radius of the pie slice (cm): 2.0Press Enter
Enter the angle of the pie slice (degree): 36Press Enter
The area of the pie slice is \(1.257\mathrm{~cm}^{\wedge}2\)
The perimeter of the pie slice is 5.257 cm
The arc length of the pie slice is 1.257 cm
Press any key to continue...
Bye...
Question 4 [ 2 5 marks ] Write a program to take

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 Programming Questions!