ABC Technologies is in the process of increment the salary of the employees. This increment is done based on their salary and their performance appraisal rating.
If the appraisal rating is between 1 and 3, the increment is 10% of the salary. If the appraisal rating is between 3.1 and 4, the increment is 25% of the salary. If the appraisal rating is between 4.1 and 5, the increment is 30% of the salary. Help them to do this, by writing a program that displays the incremented salary.
Write a class "IncrementCalculation.java" and write the main method in it.
Note : If either the salary is 0 or negative (or) if the appraisal rating is not in the range 1 to 5 (inclusive), then the output should be “Invalid Input”.
Sample Input 1 :
Enter the salary
8000
Enter the Performance appraisal rating
3
Aucun commentaire:
Enregistrer un commentaire