Computer Science, asked by chankii1986, 9 months ago

write a program in QBASIC to enter name of a student and marks obtained in six different subject:-computer science,Maths,physics,Biology,Chemistry,History.Display the name of the student,Total marks and average marks obtained​

Answers

Answered by dhruvkalbalia96
6

Answer:

CLS

INPUT “Enter the name”; N$

INPUT “Enter marks obtained in Computer Science ”; C$

INPUT “Enter marks obtained in Maths ”; M

INPUT “Enter marks obtained in Physics ”; P

INPUT “Enter marks obtained in Biology ”; B

INPUT “Enter marks obtained in Chemistry ”; C

INPUT “Enter marks obtained in History”; H

T = C$+ M+ P+ B+ C+ H

A = T / 6

PRINT “The name of the student is”;N$

PRINT “Total marks = “; T

PRINT “Average marks = “; A

END

Similar questions