Write a complete program to calculate the angle the


Write a complete program to calculate the angle, the perimeter, the area, the radius of the inscribed circle, the radius of the circumscribed circle of a polygon, and the positive difference of the two radii given the input of the length of one side (s - double) and the number of sides (n - int) from the user and these equations:

angle = (180(n - 2))/n

perimeter = ns

area = 1/4ns2cot(π/n)

inscribed_radius = -1/2s cot (π/n)

circumscribed_radius = 1/2s csc(π/n)

cot(x) = 1/ tan(x)       csc(x) = 1/sin(x)

Solution Preview :

Prepared by a verified Expert
Programming Languages: Write a complete program to calculate the angle the
Reference No:- TGS01112487

Now Priced at $10 (50% Discount)

Recommended (95%)

Rated (4.7/5)