Computer Science, asked by aarushigupta48, 1 year ago

write a program in QBasic to input " student's name, marks obtained in three different subjects" and find the total obtained marks and percentage.

Answers

Answered by JayaSinha675
152

CLS

INPUT " Enter the student's name " ; NS

INPUT " Enter the marks obtained in first subject " ; MFS

INPUT " Enter the marks obtained in second subject ";MSS

INPUT " Enter the marks obtained in third subject " ; MTS

INPUT " Enter the out total marks " ; OTM

LET TM = MFS + MSS + MTS

LET P = TM / OTM * 100

PRINT " Student name is " ; NS

PRINT " The total marks obtained is " ; TM

PRINT " The percentage is " ; P

END

Answered by kushagrar370
14

Answer:

CLS

INPUT" Enter the student's name "; NS

INPUT "Enter the marks obtained in first subject

"; MFS

INPUT" Enter the marks obtained in second subject";MSS

INPUT "Enter the marks obtained in third subject

"; MTS

INPUT "Enter the out total marks "; OTM

LET TM=MFS + MSS + MTS

LET P = TM/OTM * 100

PRINT" Student name is " ; NS

PRINT "The total marks obtained is "; TM

PRINT "The percentage is "; P

END

Similar questions