Asked by sa

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 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
minimum of 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

Answers

Answered by sa
how to see the answer
Answered by MathMate
See
http://www.jiskha.com/display.cgi?id=1483264139
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions