CS 206: Data Structures
Exercise#2
Due on Tuesday, February 4
Write a Java applet that calculates compound interest. An amount is invested at a particular annual interest rate and accumulates in value. The user enteres the initial amount (int) and an interest rate (float) into two text fields. After the data is entered, pressing the "Another Year" button updates the amount after adding the interest. An example of what your applet should do is shown below:
To use the above applet, first enter a dollar amount (say 1000). Then enter the interest rate (say 6.43). Press the "Enter" button. Then, each time you press the button "Another Year", you will get an updated amount of your investment, after adding in the interest for a year. Try it.