Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am new to programming and it is not something I am good at or like. But i have a a couple of assignments that

I am new to programming and it is not something I am good at or like. But i have a a couple of assignments that I need to do good in so I can pass this course I am in. Everytime I turn in an assignment I seem to be missing something although I always get the expected results. Could someone take a look at this problem and tell me if I have meet the requirements that is being asked? I am totally lost.

"Create your own function in C that accepts one input number and returns a double number. The themes for the functions should be one of the following: ? Calculates 3.14 times of the square of input number. For example, if 2 is input then 12.56 should be returned. (e.g. 3.14*2*2 = 12.56) ? Divides the number by 3 and returns the result. For example, if 6 was input then 2.0 should be returned. ? Squares the number and returns the result. For example, if 12.1 was entered then 146.41 would be returned. You should provide both your C code and an example call to the C code function. Be sure to provide an overview of what your function is doing. . Include header documentation in the code as well as internal code documentation. Provide a screen capture showing the results of testing your code in an online compiler.?"

image text in transcribed

P fork download copy 1. II C code 2. II This program wilL Calculates 3.14 times of the square of input number 3. I/ Developer: Keith Worthington CMIS102 4. II Date: April 28, 2018 6. #include 7 8. function definition for area of a circle 9. double circleArea (double num) 1e double result; result-3.14 num num; return result; 12 13 16. int main(void) f 17 18 19 20 21 double result result-circleArea(2) l/function call of printf("Circle Area %f ", result); circleArea return Success #stdin #stdout 0s 4572KB comments (0) Free air & 2- Sail with the most a for-1 cruise get free air. Ends 4/30 winning river cruise line & VIKING stdin ?copy stdout copy Circle Area 12.5600060

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

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

Identify traditional external recruitment methods.

Answered: 1 week ago