Hello,
I have a question regarding an assignment.
You are supposed to read the input file line by line, and store the information in your variables.
The txt is basically a table of 10 lines. Each line contains a grades (ex: A, B, etc), then tab, then a semester (ex:fall, spring, etc) , then tab, then the year this grade was earned (ex: 2009, 2010, etc)
I managed to read everything and store it in the variables.
However, the assignment needs us to make a bar graph, the bar graph is made up of three parts:
Year Term Grade
and the assignment says:
if the student got a grade in 2009, it must show under "year" Once.
Then, If the student took courses in the fall, an F must show once under term. If the student also took courses in the spring, and S must also show under term.
Then, if the student got 6 A's in the fall semester, then 7 asterisks must show under the grade part.
I know how to plot the asterisks, but my problem is how do I tell the program to read the whole text file and if a specific year the year appears on lets say 6 lines it shoes up once in the output, and then do the same thing for the semester?
Hopefully you understand my point, I cant post my code online because i'm 90% done with the program as our instructor doesn't allow us to share the codes online.