Problem
Parker's Consulting Services pays its employees an hourly rate based on two criteria-number of years of service and last year's performance rating, which is a whole number, 0 through 5. Employee records contain ID number, last and first names, year hired, and performance score. The salary schedule is outlined in the following table:
Years of service
|
Performance score
|
0
|
1
|
2
|
3
|
4
|
5
|
0
|
8.50
|
9.00
|
9.75
|
10.30
|
12.00
|
13.00
|
1
|
9.50
|
10.25
|
10.95
|
11.30
|
13.50
|
15.25
|
2
|
10.50
|
11.00
|
12.00
|
13.00
|
15.00
|
17.60
|
3
|
11.50
|
12.25
|
14.00
|
14.25
|
15.70
|
18.90
|
4 or more
|
12.50
|
13.75
|
15.25
|
15.50
|
17.00
|
20.00
|
In addition to the pay rates shown, an employee with more than 10 years of service receives an extra 5 percent per hour for each year over 10. Develop the logic for a program that continuously accepts employee data and prints each employee's ID number, name, and correct hourly salary for the current year.