Computer Science, asked by sunithadiya25, 11 hours ago

to accecpt to mark of 3 subject and calculate and display the total and the percentage (qb64) output and input

with the complete program

who and all answer I will mark them as a brain list answer as fast as you can ​

Answers

Answered by BrainlyProgrammer
5

Required Answer:

CLS

INPUT "ENTER MARK OF SUBJECT 1";A

INPUT "ENTER MARK OF SUBJECT 2";B

INPUT "ENTER MARK OF SUBJECT 3";C

TOTAL=A+B+C

PERCENTAGE=(TOTAL/300)*100

PRINT "TOTAL-";TOTAL

PRINT "PERCENTAGE-"; PERCENTAGE

END

Logic:-

  • Accept marks of 3 subjects (say, A,B,C)
  • Calculate the total = A+B+C
  • Calculate percentage marks = (total/300)*100
  • Display the total and the percentage marks

Note:-

  • You can also write PERCENTAGE=(TOTAL /3) as 100/300=1/3
Similar questions