A university has 3000 students.These students are divided in four categories

1.B Tech
2.M Tech
3.Ms
4.Phd
Draw a flowchart & algorithm to find percentage of the students in each category

1 answer

sum=0
for i = 1..4 {sum += cat[i]}
for i = 1..4 {pct[i] = cat[i]/sum * 100}