Reference no: EM132217508
Assignment
XYZ Group is a leading construction company in Oman and they are specialize in delivering solutions to diverse businesses in Oman and UAE.
Inorder to motivate the employees, the company has decided to announce the different types of bonus depends up on the employee's Grade.
If the employee belong to
Grade A bonus=20% basic
Grade B bonus=15% basic
Grade C bonus=10% basic
Grade D bonus=7% basic
Grade E bonus=5% basic
Write a Java program using classes and object to read the employee code (Integer), employee name (string), Basic salary (double), Category (Character) then calculate the bonus (double) and the total salary (double) eligible for each employ.
The output should have the employee code, employee name, basic salary, grade bonus and the total salay.
The program must use switch-case construct for calculations. Test your program for 5 employees.
Sample Output
Employee code : 1234
Employee Name : aaaaa
Basic Salary : 1000 OMR
Grade : A/B/C/D/E
Bonus : 1111 OMR
Total Salary : Basic salary + Bonus