You are on page 1of 3

Algorithm & flowchart to calculate total, per & division of 5 subject.

Step1: Start
Step2: Input the marks of five subjects m1, m2, m3, m4 & m5
Step3: Calculate the total marks.
Total = m1+m2+m3+m4+m5
Step4: Calculate percentage
Per = total/5
Step5: Print Total & par
Step6: If per>=75, then print “distinction”
Else goto next step
Step7: If per<75&per>=60, then print “First division”
Step8: If per<60 & per>=45, then print “second division”
Step9: If per<45 & per>=32, then print “3rd Division”
Else print “fail”
Step10: End
Flow Chart: - Start

Input the marks of 5


Subjects m1, m2, m3,
m4 &m5

Calculate total=m1+m2+m3
+m4+m5

Calculate per+ total/5

Print total & per

Yes

If per>=75 Print distinction

No

If per Yes
<=75&per>=60 Print 1 st division

No

If per<60& Yes Print 2nd division


Per>=45

No
If per<45 Yes
&per>=32 Print 3 rd division

Print “fail” End

You might also like