OBJECT: Write a generalized program
to prepare a Marks sheet of Five subjects with Percentage.
10 REM * PROGRAM TO
PREPARE MARKS SHEET *
20 CLS
30 INPUT “ENTER STUDENT’S NAME ------ ”; SN$
40 INPUT “ENTER ROLL NUMBER ----------- ”; RN
50 INPUT “ENTER MARKS IN ENGLISH----- ”; E
60 INPUT “ENTER MARKS IN SINDHI-------- ”; S
70 INPUT “ENTER MARKS IN COMP: STUD- ”; C
60 INPUT “ENTER MARKS IN CHEMISTRY-- ”; CH
70 INPUT “ENTER MARKS IN PAK: STUD---- ”; P
80 MO = E + S + C +
CH + P
90 PER = (MO * 100) /
425
100 CLS
110 PRINT TAB(30)“MARKS SHEET”
120 PRINT TAB(30)“-------------------- ”
130 PRINT
140 PRINT TAB(20)“STUDENT’S NAME ------ ”; SN$
150 PRINT TAB(20)“ROLL NUMBER------------ ”; RN
160 PRINT TAB(20)“MARKS IN ENGLISH-------- ”; E
170 PRINT TAB(20)“MARKS IN SINDHI----------- ”; S
180 PRINT TAB(20)“MARKS IN COMP:STUD--- -”; C
190 INPUT TAB(20)“MARKS IN CHEMISTRY---- ”; CH
200 INPUT TAB(20)“MARKS IN PAK: STUD------ ”; P
210 PRINT : PRINT
220 PRINT TAB(20)“MARKS OBTAINED------------- ”; MO
230 PRINT TAB(20)“PERCENTAGE-------------------- ”; PER
240 END
0 comments:
Post a Comment