Search This Blog

Monday, 30 December 2019

Computer Studies For Class IX (Science) and X (Arts /General /Humanities Group) - Practical No.7

Go To Index

Practical No. 7: W.A.P. to prepare your Marks sheet of five subjects along with the calculation of total marks and percentage

10 CLS: Print TAB(28) "Marksheet"
20 Locate 7, 26: Input "Enter your Maths Mark",M
30 Locate 8, 26: Input "Enter your English Mark",E
40 Locate 9, 26: Input "Enter your Sindhi Mark",S
50 Locate 10, 26: Input "Enter your Pakistan Studies Mark",P
60 Locate 11, 26: Input "Enter your Science Mark",SP
70 Let TM = M+E+S+P+SP
80 Let Percentage = TM/425*100
90 CLS:?:?:?:? Print TAB(28) "Marksheet"
100 Print TAB(26) "Maths Mark"TAB(52)M
110 Print TAB(26) "English Mark"TAB(52)E
120 Print TAB(26) "Sindhi Mark"TAB(52)S
130 Print TAB(26) "Pakistan Studies Mark"TAB(52)P
140 Print TAB(26) "Science Mark"TAB(52)SP
150 Print TAB(26) "Total Mark"TAB(52)TM
160 Print TAB(26) "Percentage"TAB(52)Percentage
170 END

RUN

OR

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


OUTPUT

MARKS 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 STUDIES 75  25  58
CHEMISTRY 100  33  87
COMPUTER 100  33  95

TOTAL   425    334
 
   PERCENTAGE==== 78.58823%

No comments:

Post a Comment