Due January 30, 1999 at the beginning of class.Part A:
Programming Project 3.16 on page 118.Part B:
Create a simple program to figure out your retirement account. Get the following information from the user: initial amount, interest rate, and inflation rate. Assuming thirty years until retirement, use a loop to calculate the interest added to your account each year. Also keep track of how much money it takes to buy one of today's dollars (start a variable at one dollar and multiply by the inflation rate each year). Print this information out for each year. Finally at the end of thirty years, print out the amount in the account and its value in today's dollars.Part C:
Exercises 4.13 and 4.14 on page 168Part D:
Programming Project 4.18 on page 169Please turn all of these parts in on paper.
The programs must have source code and a set of example runs that you feel properly test your program. For example, if the user enters a negative interest rate, you should reject it and ask again.
Don't forget to comment all of your code. Part of the grade will depend upon comments and style (follow the style guidelines in the back of the book (appendix G), for example.)