Write a program with an overloaded method for doubling the
value of the argument. One version of the method should double an
int
value, and the other
version should double a float
value. Call both methods to demonstrate that they work.
Write a program with one method that takes an int
value, and returns both double and
triple that value. You’ll need to use reference parameters.
Modify the program from Exercise 8-2 so that you don’t need to initialize the variables that will hold the doubled and tripled values before calling the method.