Computer Science, asked by harshita6318, 3 months ago

Write down a small basic program to in put the marks of 5 subjects and display the

percentage and division as per below rules.

Percentage >=60 first division

>=50 and <60 second division

>=35and <50 Third division

<35 Not Qualified​

Answers

Answered by BrainlyProgrammer
3

QUESTION:-

Write down a small basic program to in put the marks of 5 subjects and display the percentage and division as per below rules.

Percentage | Division

_________________________

Percentage >=60 l first division

l

>=50 and <60 l second division

l

>=35and <50 l Third division

l

<35 l Not Qualified

Code Language:-

  • Basic

CODE:-

CLS

Dim A as Integer

Dim B as Integer

Dim C as Integer

Dim D as Integer

Dim E as Integer

Dim P as Integer

PRINT "ENTER 5 SUBJECT MARKS"

INPUT A, B, C, D, E

P=((A+B+C+D+E)/5)

PRINT "PERCENTAGE"+P

IF P>=60

THEN PRINT "FIRST DIVISION"

ELSE IF P>=50 AND P<60

THEN PRINT "SECOND DIVISION"

ELSE IF P>=35 AND P<50

THEN PRINT "THIRD DIVISION"

ELSE PRINT "NOT QUALIFIED"

END

Variable Description

  1. A, B, C, D, E :- To accept marks of 5 subject from the user.
  2. P:- To calculate percentage

<Code written by @swetank232894>

Similar questions