Practical#12
SOURCE PROGRAM
10 REM PREPARE EMPLOEE'S SALARY SHEET
20 CLS
30 INPUT "EMPLOYEE'S NAME";N$
40 INPUT "DESIGNATION";D$
50 INPUT "BASIC SALARY";BS
60 INPUT "TOTAL ALLOWANCES";TA
70 INPUT "TOTAL DEDUCTIONS";TD
80 LET TS = BS + TA - TD
90 PRINT TAB(10) "SALARY SHEET"
100 PRINT "****************************************************"
110 PRINT "EMPLOYEE'S NAME",N$
120 PRINT "DESIGNATION",D$
130 PRINT "BASIC SALARY",BS
140 PRINT "TOTAL ALLOWANCES",TA
150 PRINT "TOTAL DEDUCTIONS",TD
160 PRINT "*********************************************"
170 PRINT "TOTAL SALARY=:",TS
180 END
OUTPUT
****************************************************
EMPLOYEE'S NAME FAROOQ
DESIGNATION MANAGER
BASIC SALARY 4250
TOTAL ALLOWANCES 1275
TOTAL DEDUCTIONS 370.5
********************************************
TOTAL SALARY=: 5154.5
No comments:
Post a Comment