Question: please write code for this program, thanks Deliverable 1: Functions The area of a regular pentagon of side of length a is given by: area

please write code for this program, thanks please write code for this program, thanks Deliverable 1: Functions The area

Deliverable 1: Functions The area of a regular pentagon of side of length a is given by: area = tan () 22 - 15. (5+2/6) For more information, see http://mathworld.wolfram.com/Regular Pentagon.html Write a program that asks the user for the length of a regular pentagon and returns the area. The purpose of this assignment is to practice using functions, so separate your program into a function main and a second function that does the mathematical calculation. You need to include math.h. After a calculation, your program should ask the user if they would like to try again, and repeat as needed. Submit your program in Moodle. You will need to link the math library to compile it. gcc d1.c -m The function atoi() converts a string to an integer while the function atof() converts a string to a double or float. The function atof() requires the line: #include

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