There are 2000 students in a course. They wrote a mathematics test which was scored out of 40 and then converted to percentage.
1. Draw a flowchart that reads the name, sex and score of each student, and outputs the names of the female students that scored below 45% and how many they are.
2. Write a pseudocode program that reads the name, sex and score of each student, and outputs the names of the female students that scored below 45% and how many they are.
1
Expert's answer
2017-05-25T04:16:01-0400
var i = 0; for each student from Students { if(student is a female) { if(student got less than 45%(18 points) on mathematics test) { save that student; i++; } } }
output names of all saved students; output info that we have "i" females that got less than 18 points;
Comments
Leave a comment