Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

5.- Design an algorithm that will read a file of student letter grades and corre

ID: 3559033 • Letter: 5

Question

5.- 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 F 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,OF F), check that the grade point is numeric, and load the values into the parallel arrays. Your program is to stop processing when the files reaches EOF or the arrays are full. Print an error message if there are more records on the file than elements in the array.

-No specific language needed, just wanted it in an algorithm. This is what i got so far.

Student_record

   Set max_num_ele to 5

   Set row_index to 0

   Read student_file

   DOWHILE (records exist) AND (row_inded <= 5)

            row_index = row_index + 1

            DO column_index = 1

               letter_grade (row_index, column_index) = point_grade

               Read student_file

            ENDDO

   ENDDO

   IF (records exist) AND (row_index = 5) THEN

            Print

Explanation / Answer

B Solution algorithm

Module Read Grades into arrays

Declare string GradesFile =

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote