I have a problem that I'm trying to solve. I'm trying to break it down into pieces, but am really having a hard time understanding it. I'm in an intro to programming class. Any help or suggestions would be appreciate. (P.S. this isn't a homework problem, but if I don't do as many of these as I can, I'm certainly not going to grasp it before finals next week.)
Here's the problem:
Design an algorithm that will read a file of student letter grades and corresponding grade points and load them into two paired arrays, as follows:
Letter Grade Grade Points
A 12
B 9
C 6
D 3
E 0
Your program is to read each record on the file (which contains a letter grade followed by a grade point), validate the letter grade (which must be A, B, C, D, or F), check that the grade point is numeric, and load the values into the parallel arrays. Your program is to stop processing when the file reaches EOF or the arrays are full. Print an error message if there are more records on the file than elements in the array.
Thank you for any help. Right now I'm trying to come up with the IPO and case structure, then right the algorithm.
_________________
Aspiring Programmer