https://github.com/phalbert/salary_calculator
A program to calculate the employee’s salariesbased on their yearly performance.
https://github.com/phalbert/salary_calculator
Last synced: 9 months ago
JSON representation
A program to calculate the employee’s salariesbased on their yearly performance.
- Host: GitHub
- URL: https://github.com/phalbert/salary_calculator
- Owner: phalbert
- Created: 2019-08-23T22:03:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-25T13:32:24.000Z (over 6 years ago)
- Last Synced: 2025-03-16T21:14:55.934Z (about 1 year ago)
- Language: C#
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Requirements
* Read the number of employees N;
* Use a few arrays of length N to store employee names, their current salaries,and their ratings obtained for each quarter-Q1, Q2, Q3, and Q4 (ratingsrangingfrom 1-10);
* Read a list of N employee names,current salaries,and quarterly ratings,and store them in the corresponding arrays;
* Calculate the overall (i.e., average) rating for each employee for the year (total rating/4);
* Calculate the expected salary for the next year based on the overall performance;
increase in salary next year= current salary *(overallrating/100)
Expected salary = current salary + amount increased
* Keep track of the employee’sperformancebased on thethree conditions:
If the employee’soverall rating is greater than or equal to 7then the performance is tagged “BEST”.
If the employee’soverall rating is greater than or equalto 5 and less than 7then the performance is tagged “AVERAGE”.
If the employee’soverall rating is less than 5, then the performance is tagged “ON-TRACK”.
* Sort the recordsbased on the overall ratingin the descending order, starting with the best performance to the on-track performance; and,
* Print all the employee names, the ratings obtained from Q1 through Q4, the overall ratings, and the performance indicators in a tabular format.