CS1030 -- Lab 2: Investment Analysis

Spring 2005
Objectives Addressed

None.

Note: Please demonstrate your program to me before leaving lab today.

Overview

A Roth IRA is a mechanism for retirement savings. Investing in a Roth IRA may allow you to avoid paying a significant amount of taxes. In this assignment, you will write a program to explore whether or not investing in a Roth IRA makes sense for you.

Assignment

Your program should ask for the following information:

Your program analyze this data and write a table similar to file. The table should have one row for year between now and your retirement. The table should be formatted in a visually pleasing mannor and should look something like this:

     |     Invest Now        | Invest after Job
Year | Borrowed   IRA value  |     IRA value   
-----+-----------------------+------------------
  0  | $7700.00    $7000.00  |         $0.00
  1  | $8277.50    $7700.00  |         $0.00
  2  | $8898.31    $8470.00  |         $0.00
  3  | $9565.69    $9317.00  |         $0.00
->4  |    $0.00   $10248.70  |      $7173.26
  5  |    $0.00   $11273.57  |      $7890.59
  6  |    $0.00   $12400.93  |      $8679.64
...

If we label the columns A, B, C, and D, and use the year number as the row number,

The input values used to generate the sample table were:

Here are how many of the table values were calculated:

Lab submission (due at the end of lab)

Submit your .cpp source file as the main file and the output file produced by your program as the support file. The output file submitted should be the one produced using the following input values:

Acknowledgment

This laboratory assignment was developed by Dr. Chris Taylor.

Last Updated: Thursday, 01-Jan-2015 14:31:25 EST