Question: You have been given a file with two columns: a student id and an integer (whole number) mark for an assignment between 0 and 40
You have been given a file with two columns: a student id and an integer (whole number) mark for an assignment between 0 and 40 inclusive. The file will look something like:
123123 23
124124 25
143124 10
124234 13
It is not known at the outset how many assignment marks are in the file, however the file will be terminated by EOF (end of file).
a. Draw a flowchart (following the conventions used in class) that reads the file and then calculates and prints the number of students who received a mark higher than 20.
b. What is the likely complexity of your program using big-O notation? Clearly point out what the primary parameters are and define your terms.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
