Answered You can hire a professional tutor to get the answer.

QUESTION

Assignment 5 -- Retirement Planning, Part 2 Write program that allows a customer to plan for retirement . Part 2: Generate a Retirement Planning...

Assignment 5 -- Retirement Planning, Part 2

Write program that allows a customer to plan for retirement.

Part 2: Generate a Retirement Planning Table:

It's hard to decide how much is needed to save for retirement. To help your customer visualize how much she needs to save for retirement, write program that allows the user to generate a retirement planning table for a specified annual savings amount showing the final account balance upon retirement for various combinations of starting age for saving and interest rate.

Specification:

  • Get just one input value from the user: the amount to be saved each year. Make sure that the user has entered a number greater than or equal to $100 (i.e. input validation is required).
  • Produce a table that shows the final account balance in 40 different situations:
  • 10 different starting ages should be used: 20, 25, 30, ... , 65.
  • For each starting age, vary the interest rate from 4% to 10% in steps of 2%.
  • Your program must use nested loops to produce the table.
  • Here is what the table would look like if the user specifies an annual savings of $3,000 (program output in blue, user input in black -- just the number 3000):
  1. use nested loops to create the table.
  • The first row of the table is created as part of the initialization for the outer loop.
  • Each row after the first is created by one pass through the outer loop.
  • In each row, the first cell is created as part of the initialization for the inner loop. Theremaining cells are created by the body of the inner loop.
  1. To get full credit, the program must call the function written in Assignment #4.
  2. This Multiplication Table Sample Program is a valuable reference for this assignment.
  3. Don't forget to include comments showing documented test cases at the end of your program.
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question