#include void main() { char gr; float sal,totsal; clrscr(); while(gr!='/') { printf("Enter the salary: "); scanf("%d",&sal); printf("Enter The Grade: "); scanf("%c",&gr); switch (gr) { case 'a': case 'A': total=sal+(sal*0.2); break; case 'b': case 'B': total=sal+(sal*0.15); break; case 'c': case 'C': total=sal+(sal*0.1); break; case 'd': case 'D': total=sal+(sal*0.05); break; case '/':break; default:printf("\n\t\t***Grade shoulde be from A - D****\n"); }//switch printf("\n\t\t**************************"); printf("\n\t\t**** The Total Salary is %f ****",totsal); printf("\n\t\t**************************\n"); }//while getch(); }