Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions