Quantcast
Viewing all articles
Browse latest Browse all 42299

Retirement Calculator

Program: A Human Resources department wants a report that shows its employees the benefits of saving for retirement. Produce a report that shows 12 predicted retirement account values for each employee—the values if the employee saves 5, 10, or 15 percent of his or her annual salary for 10, 20, 30, or 40 years.

The 12 predicted values:

Years
5%
10%
15%

10
Value 1
Value 5
Value 9

20
Value 2
Value 6
Value 10

30
Value 3
Value 7
Value 11

40
Value 4
Value 8
Value 12

The department maintains a file in which each record contains the name of an employee and the employee’s current annual salary. Assume that savings grow at a rate of 8 percent per year.

Do I need a DIM for each value? Based on the following design Attachment 99133, I assume that whatever is entered in the salary box will be dim salary as double - and then in each listbox it would be salary * 5% + 8% ? I really don't know how to structure this algorithm

Has someone else come across this? I'm using a crappy book and it doesn't explain a whole lot.
Attached Images
Image may be NSFW.
Clik here to view.
 

Viewing all articles
Browse latest Browse all 42299

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>