Question: JAVA - John has $ 5 0 0 to invest. Sue knows of a mutual fund plan that pays 1 0 percent interest.com: pounded quarterly

JAVA- John has $500 to invest. Sue knows of a mutual fund plan that pays 10 percent interest.com: pounded quarterly (that is, every 3 months, the principal is multiplied by the 2.5 percent and theresult is added to the principal; more generally, the amount of gain each quarter is equal to current balance *(1+ interest rate /400)). Write a program that tells John how much money will bein the fund after 20 years. Make the program general, that is, it should take as inputs the interest rate, the initial principal, and the number of years to stay in the fund. The output should be a table whose columns are the year number, the principal at the beginning of the year, the interest earned, and the principal at the end of the year.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!