Copy source code and example output for the 4 programs into a single Word document using the Homework Template.  Submit the file on eCampus under the "Submit Homework" menu option.

1. Create a program named future.java that allows the user to calculate the future value of a monthly investment.  Below is example output:

How much will you save monthly?  100
How many years will you save?  20
Annual interest rate percentage? 15

After 20 years, your investment will be worth $151,595.49


2. Create a program named different.java that has two overloaded methods that take 3 and 4 integer parameters. 
- If all the integer parameters are the same, the method returns "same".
- If all the integers are different, it returns "different".
- Otherwise, if at least half the integers are the same, it returns "similar".

Test your methods with this main program:

public static void main (String[] args)
{
   System.out.println("3,1,5 = " + SameDifferent(3,1,5));
   System.out.println("2,0,2 = " + SameDifferent(2,0,2));
   System.out.println("5,5,5 = " + SameDifferent(5,5,5));
   System.out.println("8,9,2,4 = " + SameDifferent(8,9,2,4));
   System.out.println("7,7,1,7 = " + SameDifferent(7,7,1,7));
   System.out.println("4,4,4,4 = " + SameDifferent(4,4,4,4));
}

3. Write a program named randomsum.java that asks the user to enter a number.  The program then calculates 4 random numbers that sum up to the user's numbers.  It should output different (random) numbers each time.  Below are some example runs:

Please enter an Integer:  100
These numbers sum up to 100:  50, 8, 19, 23

Please enter an Integer:  100
These numbers sum up to 100:  17, 42, 5, 36

Please enter an Integer:  25
These numbers sum up to 25:  1, 9, 11, 4