Question
Thanks in advance. I'm having trouble inputting the following code into my compiler and need help with this assignment. The material is confusing for me.
Thanks in advance. I'm having trouble inputting the following code into my compiler and need help with this assignment. The material is confusing for me. I had my professor try to explain it but it feels like I'm getting no where and this is due tonight as well. How do I add the shrink input to this specific code and etc? Can someone take a look at my code and show me how to make it run?
Here are the following instructions:
1. Demonstrate you successfully followed the steps in this lab by preparing screen captures of you running the lab as specified in the Instructions above.
2. (x/2) Provide a new function, shrink (float x), that would divide the input value by 2 using the shown code as a template. Support your experimentation with screen captures of executing the new code. Use a new test table with at least 3 distinct test cases listing input and expected output for the new code you created for the shrink function.
3. Why is the number of x's different in the printf statements in the functions?
4. What happens if the user makes a selection other than one of the ones shown in the help prompt (a, b, c, or q in the code shown)? Justify your answer with documented experiments.
5. What would have to be changed in the code if the while statement were changed to: while (menu == 5);
6. Modify the original code and add an additional function of your choice. The function should be unique and something you created for this assignment. Support your experimentation with screen captures of executing the new code. Use a test table with at least 3 distinct test cases listing input and expected output for your unique function.
Thanks again
c https://repl.it/@MomoNicol/MeekTameMeasurements un share elang vezsian 7.0.0-3 umtu.18.04.1 700/Einal Flos includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started