Question: Create pseudocode for a program that computes a students test average. Design a program that prompts the user for a students ID number and three
Create pseudocode for a program that computes a students test average. Design a program that prompts the user for a students ID number and three test scores. Each test score is to be entered with a separate prompt.
Output is the students average of the three test scores and the students grade. The grading scale is the usual scale:
| Average | Grade |
| >= 90 and <=100 | A |
| >= 80 and <90 | B |
| >= 70 and < 80 | C |
| >= 60 and < 70 | D |
| <60 | F |
Use a Do/While loop. Assume there will be at least one input student and scores. After each student is processed, ask the user if there is more input and set a flag to Y or N. Allow for either capital letters or lower case letters.
Use a named constant for the number of tests (In this case 3).
Define a function named computeAverage() wirh 3 parameters all Real for each of the 3 tests. The function will return a Real value, the average of the 3 test scores.
Add a counter to count the number of students processed. Add a running total to accumulate the students averages. After the loop ends calculate the overall average by dividing the running total by the number of students.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
