Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I. {loll} Create a new function, ehrink {float x} , that would divide the input yalue by 2 using the shown code as a tern

image text in transcribedimage text in transcribed
I. {loll} Create a new function, ehrink {float x} , that would divide the input yalue by 2 using the shown code as a tern plate. Support your experimentation with screen captures of executing the new code. Prepare a new test table with at least El distinct test cases listing input and expected output for the new code you created for the shrink function. Why is the number of :c's different in the printf statements in the functions? What happens if the user makes a selection other than one of the ones shown in the help prom pt [3, by c. or q in the code shown}? Justify your answer with documented experiments. What would have to be changed in the code if the while statement were changed to: whi 1e {menu == 5}: 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. Prepare a test table with at least 3 distinct test cases listing input and expected output for your unique function. [ Code The following is the [ Code that will compile and execute in the online compilers . The header comment block is not shown allowing the new code to fit here on one page #include

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions