Help me with my ASSIGNMENT

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...
Last edited on
What part of the assignment do you need help with?
I NEED THE CODING...
but still i did mine and ask my senior,

and u all pll here in this forum..
plz...

Show us what you got so far and we'll try to help you.
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???
@pot, tq for ur help,

but still i will did mine, and compare my work with urs, and will ask my senior... TQ...

@Stupebrett

with my inisiative, pot's help (her/his coding), and my senior, i will show my back what i've got so far...

just in case, i will show back what i've got so far... i will.. i'm sure

khaelly, pot's code is intentionally designed to be a very bad example. That's why he called it "useless". You shouldn't copy any of his styles ;)
@L B...

yes i'd try pot's code, too many error.. and the table and blabla

what's a point he post it?
too smart to play aorund to create a code..

whatever...

im not that smart, just wait for mine that what i've got so far... i will.. i'm sure
Can anyone post the true coding for the question above????? Plizzzz
Can someone help to post the coding for the question above???
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.
#include<iostream.h>
#include<string.h>
void display(char,int,float);
void main()
{ char name,grade;
float average_mark(char,int);
char status(float);
int x=0,y=0;

{
for(x=0;x<y;y++)
cin>>y;
cout<<"Enter lect name : ";
cin>>name;
cout<<" Enter Grade A,B,C,D : ";
cin>>grade;
}
float average_mark(char grade);
}

float average_grade(char grade)
{ int mark;
int sum_mark=0,counter=0;
float average_mark;
if (grade=='A') mark=4;
else if (grade=='B') mark=3;
else if (grade=='C') mark=2;
else if (grade=='D') mark=1;
sum_mark+=mark;
++count;
}
return sum/count;
}

char(average_mark)
{char float average_mark;
if (average_mark<=4) stat=="Excellent"
else if (average_mark<=3.5) stat=="Good";
else if (average_mark<=3.0) stat=="Average";
else if (average_mark<=2.0)stat=="Poor";
return strAverage_mark;
}

void display (char,int,float)
{
cout<<" Name "<<name<<endl;
cout<< " Subject Code : MTS 3013 "<<endl;
cout<< " Average Mark : "<<average_mark<<endl;
cout<< " Status : "<<stat;
}
//end function display

this is my coding.......but many error...
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.

Start here: http://www.cplusplus.com/doc/tutorial/functions/
i try so hard...

but still i feel guilty to post it...

plz give me a correct coding...
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. ).
Topic archived. No new replies allowed.