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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started