Current location - Training Enrollment Network - Mathematics courses - High school mathematics basic algorithm statement (writing pseudo code)
High school mathematics basic algorithm statement (writing pseudo code)
Int transfer number = 0;

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;