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.
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;
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
JavaJSPJSF