Question
The ACME Oil and Gas Company needs a personnel salary report for its employees, showing their expected salary increase for the next year. Each record
The ACME Oil and Gas Company needs a personnel salary report for its employees, showing their expected salary increase for the next year. Each record contains the employees number, name, gross salary, peer performance rating and supervisor performance rating. The percentage increase in salary to be applied to the gross salary is based on two factors: the peer performance rating and the supervisor performance rating, as specified in the following two-dimensional array:
Your program is to retrieve the percentage increase in salary, using the peer performance rating and the supervisor performance rating as indexes to look up the salary increase percentage table. Then calculate the new salary by applying the percentage increase to the gross salary figure. For each employee, print the employees number, name, this years gross salary and next years gross salary. At the end of the report, print the two total gross salary figures.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started