Practical#05
SOURCE PROGRAM
10 REM TO PREPARE MARKS SHEET FOR 5 SUBJECTS WITH PERCENTAGE
20 CLS
30 INPUT "ENTER ROLL NUMBER";RN$
40 INPUT "ENTER STUDENT'S NAME";SN$
50 INPUT "ENTER FATHER'S NAME";FA$
60 INPUT "ENTER CLASS";CL$
70 INPUT "MARKS IN ENGLISH";E
80 INPUT "MARKS IN SINDHI";S
90 INPUT "MARKS IN PAKISTAN STUDIES";P
100 INPUT "MARKS IN CHEMISTRY";CH
110 INPUT "MARKS IN COMPUTER";CO
120 LET OBTMARKS = E + S + P + CH + CO
130 LET PER = (OBTMARKS / 425 ) * 100
140 PRINT TAB(10) "MARKS SHEET FOR 5 SUBJECTS WITH PERCENTAGE"
150 PRINT TAB(10) "STEP BY STEP SCHOOL"
160 PRINT "ROLL NUMBER:";RN
170 PRINT "STUDENT'S NAME:";SN$
180 PRINT "FATHER'S NAME:";FA$
190 PRINT "CLASS:";CL$
200 PRINT TAB(5) "SUBJECTS", "MAX.MARKS", "PASSING MARKS", "OBTAINED MARKS"
210 PRINT TAB(5) "ENGLISH", "75", "25", E
220 PRINT TAB(5) "SINDHI", "75", "25", S
230 PRINT TAB(5) "PAKISTAN STUDIES"; "75", "25", P
240 PRINT TAB(5) "CHEMISTRY", "100", "33", CH
250 PRINT TAB(5) "COMPUTER", "100", "33", CO
260 PRINT TAB(5) "TOTAL MARKS", "425", " ", OBTMARKS
270 PRINT TAB(10) "PERCENTAGE====",PER
280 END
OUTPUTMARKS SHEET FOR 5 SUBJECTS WITH PERCENTAGE STEP BY STEP SCHOOL
ROLL NUMBER: 12345
STUDENT'S NAME: ALI
FATHER'S NAME: AKHTAR
CLASS: IX
SUBJECTS MAX.MARKS PASSING MARKS OBTAINED MARKS
ENGLISH 75 25 45
SINDHI 75 25 49
PAKISTAN STUDIES75 25 58
CHEMISTRY 100 33 87
COMPUTER 100 33 95
TOTAL 425 334
PERCENTAGE==== 78.58823%
Monday, April 12, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment