Total floating passing score = 0;
Total score of floating class = 0;
Floating average = 0;
Average value of floating class = 0;
For (loop condition, traversing all students) {
The total score of the whole class+= math score;
If (math score >; =60){
Qualified persons++persons;
Total passing score+= math score;
}
}
Average passing score = total passing score/number of passing students;
Average score of the whole class = total score of the whole class/50;