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
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
World Languages,
1 month ago
Math,
1 month ago
Physics,
1 month ago
Physics,
3 months ago
Math,
10 months ago