Site icon Study Fy

Pseudocode

Pseudocode

Question Description

Write a pseudocode

We have a file named ClassGrades.dat that contains names and grades for all students in a class. The following fields are on each record: student name, midterm exam grade, final exam grade. Write a program that averages the two exams to get the student’s final average. The program should also determine the student’s final letter grade, which will be either “P” (for Pass) or “F” (for Fail). To pass the course the student must get an average of at least 80. The program should write each student’s name, final average and final letter grade to another file named ClassGrades2.dat.The program should keep track of the number of students, the number that passed and the number that failed. It should also calculate the final average of the entire class. To calculate the final class average you take the average of all the student final averages (e.g. if you had 3 students in a class and their final averages were 50, 80 and 80, the class average would be 70 (you would add up 50, 80, 80 and divide by 3)). Hint: To calculate the class average, count the number of students processed and add up all of the student final averages (i.e. accumulate the student final averages) inside loop; after the loop, divide total of all student averages by the number of students.As far as output that the user can see, the program should display “Results of Grade Program” at the beginning. Then it should display the number of students processed, the number of students who got P’s and the number of students who got F’s. It should also display the final average for the entire class. It should then display “End of Grade Report”.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Exit mobile version