Computer Science, asked by aadya17661, 3 months ago

Draw a flowchart and write a program in QBASIC to enter your name and the marks obtained in 10 different subjects in a term examination. Display the sum and average on the screen along with the name. ​

Answers

Answered by mail2rheaagr
3

Answer:

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

Answered by tiggabivan
1

Explanation:

Write a program to enter your name, school name and marks in 10 different subjects.

Display the name, school name, sum and average on the screen.

Similar questions