Go To Index
Practical No. 13: W.A.P. to prepare an employee salary sheet. Name, Designation, Basic salary, total deduction, total Allowances. Calculate NET Salary = Basic Salary + Total Allowance- Total Deduction.
10 CLS: Print TAB(28) "Employee Salary".
20 Print TAB(28) "*******"
30 Locate 7, 26: Input "Enter Name",N$
40 Locate 8, 26: Input "Enter Designation",D$
50 Locate 9, 26: Input "Enter Basic salary",BS
60 Locate 10, 26: Input "Total Allowance",TA
70 Locate 11, 26: Input "Total Deduction",TD
80 Let N$ = BS+TA-TD
90 CLS
100 Print TAB(26) "Name"TAB(37)N$
110 Print TAB(26) "Designation"TAB(37)D$
120 Print TAB(26) "Basic salary"TAB(37)BS
130 Print TAB(26) "Total Allowance"TAB(37)TA
140 Print TAB(26) "Total Deduction"TAB(37)TD
150 Print TAB(26) "Net Salary"TAB(37)NS
160 END
RUN
No comments:
Post a Comment