A large school categories its students as Year 1, Year 2, up to year 7. The school is interested in finding out how many Year 1 students are taller than 135 cm and how many year 7 students are shorter than 175 cm. Write an algorithm, in the form of a flowchart, which inputs the year number and height of all 1000 students. The output will be how many students in year 1 were taller than 135 cm and how many students in year 7 were shorter than 175 cm.
The answer to your question is provided in the image:
Comments
Leave a comment