support@unifiedpapers.com

Create your own function in C that accepts one input number and returns a double number.

Homework 4 – Create your own Function 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. Be sure to test your code with several test cases and show your test case table. Submit your word or PDF file, along with the C code to your assignments folder no later than the due date. Grading guidelines Submission Points C code for simple function that accepts one input number and returns a double num1ber was provided and compiles without issue. 2 C code provided that correctly calls your simple function. 1 Screen captures of test cases represent a wide variety of possible input values (e.g. large numbers, small numbers (0), negative, or unexpected non-number entries). 1 Code includes Header and Internal Code documentation


 

. .

.

The post Create your own function in C that accepts one input number and returns a double number. appeared first on Unified Papers.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp