Question: Average Mark Computation A student enrolled in a mathematics module must complete ten assessments during a semester. The average score of these ten tests will

Average Mark Computation
A student enrolled in a mathematics module must complete ten assessments during a semester. The average score of these ten tests will determine if the student passes the module. To achieve this task, an algorithm is required. The algorithm "FinalMark" prompts the user to enter the ten test scores in the main procedure, which stores these scores in an array called "testmarks."
The main procedure calls a function "CalculateAverage" that takes the sum of all the marks as an argument, calculates the average of the test scores, and returns it.
A subprocedure "DetermineGrade" is then called from the main procedure. It accepts the average score as an argument, determines the corresponding letter grade, and displays it based on the following grading scale:
Average
Grade
90100
Distinction
8089
Very Good
7079
Good
6069
Credit
5059
Pass
049
Fail
Create an algorithm using pseudocode that performs the following tasks:
Stores the marks supplied in the main procedure in an array called testmarks.
Calls the function CalculateAverage and the sub-procedure DetermineGrade from the main procedure. The CalculateAverage function computes the average of the marks entered while the DetermineGrade determines the grade in which supplied marks falls.
Calculates the sum of these marks in the main procedure.
Displays the letter grade in the DetermineGrade sub-procedure.
Include comments throughout your algorithm.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!