Wednesday, November 23, 2016

Using the Square and Cube functions as models, Create an application that includes a function named “Shrink” – Online Homework Help


Learning Exercises for you to complete
  1. Using the Square and Cube functions as models, Create an application that includes a function named “Shrink” that would take an Integer and return the Integer divided by 2? (Hint: your returned value should probably be a double type.) 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 code you created after step 1. 
  3. What would happen if you removed the following code from our design? If intValue > 0 
Support your argument with screen captures of executing the new code.
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 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. 

No comments:

Post a Comment