lab 7 help.docx - 1(x\/2 Create a new function shrink(float x that would divide the input value by 2 using the shown code as a template Support your

lab 7 help.docx - 1(x/2 Create a new function shrink(float...

This preview shows page 1 - 3 out of 3 pages.

1. (x/2) Create 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. 2. Prepare a new test table with at least 3 distinct test cases listing input and expected output for the new program you created for the shrink function. Test Case Input Expected Output 1 d 5 d(5.00)=5.00/2=2.50 2 d 10 d(10.00)=10.00/2=5.00 2 q Bye…. 3. What would have to be changed in the code if the while statement were changed to: while (menu == 5); Menu functions only runs once.
Image of page 1
4. 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
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 3 pages?

  • Summer '14

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors