Basic Program To Inputs Employee’s Name and Calculates Salary as per Grade

REM THIS PROGRAMME INPUTS EMPLOYEE’S NAME AND CALCULATES SALARY AS PER GREADE
CLS
10 INPUT “ENTER THE NO OF EMP”; N
20 FOR I = 1 TO N
30 INPUT “ENTER THE NAME OF EMP”; S$
40 INPUT “ENTER THE GRADE”; G
50 ON G GOTO 60, 80, 100
60 BASIC = 1600
70 GOTO 110
80 BASIC = 2400
90 GOTO 110
100 BASIC = 3200
110 DA = 70 / 100 * BASIC
120 HRA = 50 / 100 * BASIC
130 TOTAL = DA + HRA + BASIC
140 PRINT “TOTAL SALARY”; TOTAL
150 NEXT I
160 END

Please follow and like us:

Leave a comment