Assignment Two: Loops

Part One

Write a program which prints the balances in your retirement fund. This program will need to start with the following numbers:

The program should then print out the status of your retirement account at the beginning and end of each year. In order to calculate the new balance for any given year, calculate the interest earned on the old balance, and add that along with the yearly contribution to the old balance.

Part Two

Create a user-interface loop which asks the appropriate questions and then prints out a retirement calculation with the given numbers.

What to turn in

Print out and turn in the code and any test runs of your results from part two. If you are not able to complete part two, but are able to complete part one, turn that in instead along with appropriate testing of the program.

Turn these in at the beginning of class on 7 February, 2007.