Java Math Problem from Partner

Write a program in Java to solve a numerical problem. Each team member will write a math problem story for the other team member. The other team member will write the program. The master programmer will put the two programs together so the first story runs and then the second one runs and then it prints the sum of the result of both stories. The test data for both stories needs to be in the comments. Remember to use the HELP board if you have trouble. Instructions for downloading BLUEJ are in the syllabus.

Here are the steps:

1) Decide upon a problem that can be solved by taking in a couple parameters, doing a calculation and printing a result, and then returning that result. Some ideas and other ideas are fine:

2) Write a specificiation of what the user should see when they run this method.

3) Give your specification to your partner by replying to the discussion board entry under your group.

4) Design and code your partner's spec. (Each person will code their teammate's spec.)

4) Test your own method to see it prints what it should.

5) Type your test data into the comments.

6) Test your own program using all your test data

7) Give the finished program to the master programmer for this assignment (and this position should rotate for the next assignment). Copy and paste all your code into a reply on the discussion board.

8) The master programmer will merge the two by doing the following:

9) The NON-master programmer will verify that the main method correctly calls the methods and adds up the total returned.

Please upload just the .java file into this assignment.