next up previous contents
Next: Solution Up: Arrays Previous: Solution

 

Salaries Example

The salaries received by employees of a company are

10500, 16140, 22300, 15960, 14150, 12180, 13230, 15760, 31000

and the position in the hierarchy of each employee is indicated by a corresponding category thus

1, 2, 3, 2, 1, 1, 1, 2, 3

Write a program to find the total cost to the company of increasing the salary of people in categories 1, 2 and 3 by 5%, 4% and 2% respectively.




next up previous contents
Next: Solution Up: Arrays Previous: Solution

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 14:10:26 GMT 1996