Computer Science, asked by saptarshisarkar2907, 17 days ago

and display the result. 5. A class teacher wants to calculate the average marks obtained by a student in three terms in a class of 50 students. Draw a flowchart and write a program in QBASIC to enter the name and the total marks obtained by a student in three terms. Display the result along with the name ​

Answers

Answered by ChweetLove
0

Answer:

Format :

INPUT "ENTER NAME: " ; NAME$

INPUT "ENTER MARK OF 1ST SUBJECT: " ; MARK1

INPUT "ENTER MARK OF 2ND SUBJECT: " ; MARK2

INPUT "ENTER MARK OF 3RD SUBJECT: " ; MARK3

INPUT "ENTER MARK OF 4TH SUBJECT: " ; MARK4

INPUT "ENTER MARK OF 5TH SUBJECT: " ; MARK5

INPUT "ENTER MARK OF 6TH SUBJECT: " ; MARK6

INPUT "ENTER MARK OF 7TH SUBJECT: " ; MARK7

INPUT "ENTER MARK OF 8TH SUBJECT: " ; MARK8

INPUT "ENTER MARK OF 9TH SUBJECT: " ; MARK9

INPUT "ENTER MARK OF 10TH SUBJECT: " ; MARK10

INPUT "ENTER MARK OF 11TH SUBJECT: " ; MARK11

INPUT "ENTER MARK OF 12TH SUBJECT: " ; MARK12

TOTAL = MARK1 + MARK2 + MARK3 + MARK4 + MARK5 + MARK6 + MARK7 + MARK8 + MARK9 + MARK10 + MARK11 + MARK12

AVERAGE = TOTAL / 12

PRINT "NAME : " ; NAME$

PRINT "TOTAL MARKS : " ; TOTAL

PRINT "AVERAGE MARK : " ; AVERAGE

END

 \huge \pink{~} \red {τ} \green {α} \blue {v} \orange {v}  \pink {u} \red {♡}

Answered by llMadeSavagell
0

{\huge{\underline{\small{\mathbb{\pink{♡Ans:-}}}}}}

QBASIC Program

Cls

Let T = 0

Let AVG = 0

Input "Enter name"; N$

For I = 1 To 12

Input "Enter marks"; M

T = T + M

Next I

AVG = T / 12

Print "Name - "; N$

Print "Total marks -"; T

Print "Average marks - "; AVG

End

Output

Enter name? Richa

Enter marks? 89

Enter marks? 89

Enter marks? 87

Enter marks? 90

Enter marks? 99

Enter marks? 95

Enter marks? 97

Enter marks? 92

Enter marks? 78

Enter marks? 95

Enter marks? 78

Enter marks? 80

Name - Richa

Total marks - 1069

Average marks - 89.08334

Similar questions