subject

A regular polygon is an n-sided polygon in which all sides are of the same length and all angles have the same degree(i. e the polygon is both equilateral and equiangular). The formula for computing the area of a re polygon is n * s2(s squar)
area =
4 * tan(pi/n)
write a function that return the area of a regular polygon using the following header.
double area(int n, double side.
write a main function that prompts the user to enter the number of sides and the side of a regular polygon, and display the area.
The program needs to allow the user to run the calculations as needed until the user chooses to end the program.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
question
Computers and Technology, 23.06.2019 18:20
What is wi-fi infrastructure? a metropolitan area network that uses radio signals to transmit and receive data a communications technology aimed at providing high-speed wireless data over metropolitan area networks a means by which portable devices can connect wirelessly to a local area network, using access points that send and receive data via radio waves includes the inner workings of a wi-fi service or utility, including the signal transmitters, towers, or poles and additional equipment required to send out a wi-fi signal
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
You know the right answer?
A regular polygon is an n-sided polygon in which all sides are of the same length and all angles hav...
Questions
question
History, 15.10.2020 20:01
question
Mathematics, 15.10.2020 20:01
question
Mathematics, 15.10.2020 20:01
question
Mathematics, 15.10.2020 20:01
Questions on the website: 13722360