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:
\table[[Average,Grade],[90-100,Distinction],[80-89,Very Good],[70-79,Good],[60-69,Credit],[50-59,Pass],[0-49,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.
(20 Marks)
image text in transcribed

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

Step: 3

blur-text-image

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

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

ISBN: 1292107634, 978-1292107639

More Books

Students also viewed these Databases questions