Print the memory addresses of ALL of the variable defined in your program at the VERY end of the code. No automation here…just the name of the variable and the memory address at which it resided during the run. Please comment (in Canvas) on your perception of how the memory addresses are being assigned once they are declared. You may want to notice if the addresses are ascending or descending and you may want to look at what address one variable starts at and the next variable starts at…what’s the difference in bytes?

Please redo Lab #1 but…

Allow the user to input ALL of the variables on the command line in a fixed order… that order being…
inner diameter, outer diameter, thickness, density and then quantity
…if the user does not put any arguments on the command line the user may enter the values interactively, but it MUST be capable of doing BOTH!!!!

You may want to look at https://www.techonthenet.com/c_language/standard_library_functions/stdlib_h/atof.php#:~:text=In%20the%20C%20Programming%20Language,that%20isn’t%20a%20number (Links to an external site.).
-also-
When requesting the input of variables perform this as you had previously, but this time…
*Your calculations MUST use pointers to these variables rather than the variables themselves.
*When printing the results of your calculations you MUST only use pointers-to-pointers of the variables rather than the variables themselves or pointers to those variables.
-also-
Please add the “math.h” library and use at least one part of this library to change how your calculations are done. For example, as you know there is no exponentiation in basic C, but “math.h” adds this capability. Perhaps may want to start there.
-also-
Print the memory addresses of ALL of the variable defined in your program at the VERY end of the code. No automation here…just the name of the variable and the memory address at which it resided during the run. Please comment (in Canvas) on your perception of how the memory addresses are being assigned once they are declared. You may want to notice if the addresses are ascending or descending and you may want to look at what address one variable starts at and the next variable starts at…what’s the difference in bytes?
Again…this comment goes into your comment box in Canvas

Last Completed Projects

topic title academic level Writer delivered