Create a program that calculates the area of a regular, n-sided polygon. The user must enter the
Fantastic news! We've Found the answer you've been seeking!
Question:
Create a program that calculates the area of a regular, n-sided polygon. The user must enter the number of sides of the polygon and the side length. The number of sides must be greater than 2, and the side length must be greater than zero. The formula is: area = n * s2 ------ 4 tan(π/n) where n is the number of sides and s is the side length.
Related Book For
Operations Management Managing Global Supply Chains
ISBN: 978-1506302935
1st edition
Authors: Ray R. Venkataraman, Jeffrey K. Pinto
Posted Date: