Well Come to Professional Programmers

Learning Goal

Learning is a process to acquire, enhance, or make changes in one's knowledge. Learning Module presents essential and masks non-essential pieces of knowledge. It is self paced and presents required links to important examples and related terminologies essentially required for examination centric study. The module is focused on examination system in vogue in Pakistan and helps student acquire maximum marks in limited time of study.

GW-BASIC COUNTER

Monday, April 12, 2010



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




SALARY SHEET

****************************************************
EMPLOYEE'S NAME FAROOQ
DESIGNATION MANAGER
BASIC SALARY 4250
TOTAL ALLOWANCES 1275
TOTAL DEDUCTIONS 370.5
********************************************
TOTAL SALARY=: 5154.5


Return to Top

No comments:

Post a Comment