Hi everyone.
Just recently pushed myself to go back to school and I'm pursuing a course in Info Systems and Management.
However, I have absolutely zero programming experience and sadly, even the entry level algorithm writing that we are doing this semester is giving me grief.
Maybe it's the method of teaching/jumping back into studying after a gap of several years/juggling work full-time and classes, I just can't seem to wrap my brain around it.
Now I have an assignment due and I'm looking for some assistance.
The answer would be nice too but only in addition to the way you would go about doing it.
I think I'd be able to follow better that way
Problem
An instructor has a list of marks representing the scores of students in a test. Each line contains a student id (integer) followed by an integer score in the range 0-100. The last line contains the number -9999.
Sample Data
5000 45
4000 32
1000 75
-9999
Requirements
(a) Write algorithms to read the data and find and print
- The average mark in the exam
- The ID of the student who scored the highest if the highest is unique. If more than one student scored the highest mark, print all of their IDs.
(b) Write an algorithm to print a list of all students with IDs in the range 4000-7000 and the score each obtained.
(c) Clearly explain the main steps.
Thanks in advance for any help that is provided.
Just recently pushed myself to go back to school and I'm pursuing a course in Info Systems and Management.
However, I have absolutely zero programming experience and sadly, even the entry level algorithm writing that we are doing this semester is giving me grief.
Maybe it's the method of teaching/jumping back into studying after a gap of several years/juggling work full-time and classes, I just can't seem to wrap my brain around it.
Now I have an assignment due and I'm looking for some assistance.
The answer would be nice too but only in addition to the way you would go about doing it.
I think I'd be able to follow better that way
Problem
An instructor has a list of marks representing the scores of students in a test. Each line contains a student id (integer) followed by an integer score in the range 0-100. The last line contains the number -9999.
Sample Data
5000 45
4000 32
1000 75
-9999
Requirements
(a) Write algorithms to read the data and find and print
- The average mark in the exam
- The ID of the student who scored the highest if the highest is unique. If more than one student scored the highest mark, print all of their IDs.
(b) Write an algorithm to print a list of all students with IDs in the range 4000-7000 and the score each obtained.
(c) Clearly explain the main steps.
Thanks in advance for any help that is provided.