Monday, March 19, 2018

write a program by using QBASIC code to input name class and marks obtained in 3 subjects of any one student and calculate total, percentage and display them.


Write a program by using QBASIC code to input name class and marks obtained in 3 subjects of any one student and calculate total, percentage and display them.


CLS
INPUT “ENTER NAME”; N$
INPUT “ENTER CLASS”; C
INPUT “ENTER MARKS OBTAINED IN ANY THREE SUBJECTS”; A, B, C
T = A+ B+ C
P = T / 3
PRINT “YOUR NAME IS”;N$
PRINT “YOUR CLASS IS”; C
PRINT “YOUR OBTAINED MARKS ARE”; A, B, C
PRINT “TOTAL MARKS = “; T
PRINT “PERCENTAGE = “; P
END


7 comments:

  1. Is this the answer of Write a program which asks you to enter name class roll no and marks of 5 subjects and print name class
    roll no and total marks of 5 subjects and average marks.

    ReplyDelete
  2. close but nvm- fuck qbasic programming ��

    ReplyDelete
  3. Write a QBASIC program to print the division of a student, based on marks scored. (plz answer)

    ReplyDelete