Answered step by step
Verified Expert Solution
Link Copied!
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:
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

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students explore these related Databases questions

Question

5 The mechanics of the circular flow model.

Answered: 3 weeks ago