UNI Quality Assurance department has decided to do Teaching & Learning Evaluation for every lecturer in UPSI. In this evaluation, each student will have to key in the grade for the lecturer whether A, B, C or D and the marks for each grade are shown in table 1.
Grade | Mark
A | 4
B | 3
C | 2
D | 1
Table 1
Using a modular programming approached (function by reference), write a program to calculate the average mark that a lecturer had obtained and then display the result. The program also should display the lecturer’s status based on the total marks whereby status for each range of marks is shown in table 2.
Mark | Status
3.5<=average<=100 | Excellence
3.0<=average<3.5 | Good
2.0<=average<3.0 | Average
average<2.0 | Poor
Table 2
Your program should at least have the following functions:-
i. Function Average_Calculation – to calculate average mark
ii. Function Status – to determine the status.
iii. Function Display – display the result
Notes: Assumed the lecturer has M number of students.
Example of output :
UNI
Teaching & Learning Evaluation Report
Name : Natasya
Subject Code : MTS 3013
Average Mark : 3.8
Status : Excellence
PLZ, I NEED TO SUBMIT 5 DAYS LEFT, MAY GOD BLESS U IF U HELP ME...