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 employeethe 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 employees 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.
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 employees 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.