Question: Write a function only (no main program) that takes the integer radius r of a circle (in centimeters) and a double value theta which is

Write a function only (no main program) that takes the integer radius r of a circle (in centimeters) and a double value theta which is the angle (in degrees) defining the sector of the circle. Your function will calculate the area of the sector using this formula: r2theta/2. If the area is greater than 100 cm2 return only the whole part (123.45 would become 123.0). Return the resulting area to the main program as a double. Important: For the formula to work, theta must be transformed in radians (multiply by PI and divide by 180)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
