Square and cube | Computer Science homework help

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.

 

code needs to be run in compiler successful