The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 313 Weeks Ago, 6 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Follow instructions. make sure SCREEN CAPTURES are provided. Please attach as word doc. Doc 7 is an example of someone to guide you.
Homework 4
Create your own function in C that accepts one input parameter and returns a float number. You decide the theme.
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.
The code I have prepared calculates the perimeter of a square.
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.
Â
|
Test # |
Input |
Expected Output |
|
 1 |
0.359 1 |
Enter a positive Integer : Enter 1 to calculate the perimeter of the square Perimeter of a square with a side of 0.359000 is 1.436000 |
|
 2 |
199 1 |
Enter a positive Integer : Enter 1 to calculate the perimeter of the square Perimeter of a square with a side of 199.000000 is 796.000000 |
|
 3 |
-2.78 1 |
Enter a positive Integer : Â |
Â
Â
Test 1

Test 2

Test 3
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly