Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
tableAverageGradeDistinctionVery GoodGoodCreditPassFail
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 subprocedure 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 subprocedure.
Include comments throughout your algorithm.
Marks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started