UNI Quality Assurance department has decided to do Teaching & Learning Evaluation for every lecturer in UNI. 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...
Can u show the coding by using function by reference only for the question above........only use #include<iostream> and #include<string> can anyone help me???
Look, we're not going to do the coding for you. You have to do that yourself. What we can and will do though, is to help you with your problems regarding the code after you post it.
You're not using functions properly. You're not even declaring them properly. What sense does it make to pass a char to a function if you don't know the name of the char? How will you use it?
What's worse: you're not even consistent in your wrong syntax. I'm guessing you received some basic code (e.g. the delcaration of display()) and then failed to reproduce it.
post your code, don't worry. we're not judges of Supreme Court!
if you post it, we also understand better what you want , for istance the input for the student (from file? or terminal? ecc. ).