creating grade array

I need to create a program that will execute displaying a column with the student id, exam scores and so forth. this is roughly what i would need the table to look like

sn exan lab avg pt grde letter grade
1 100 100.0 xxx.x x
2 95 99.9 xx.x x
3 90 99.9 xx.x x
4 80 88.8 xx.x x
5 70 77.7 xx.x x
6 60 66.6 xx.x x
7 50 55.5 xx.x x



Exam Average: XX.X
Lab Average Average: XX.X
Point Grade Average: XX.X

and this is the code i have so far
#include <iostream>
using namespace std;

const int NO_OF_STUDENTS = 10;
int getstudentcount ();
int getexamscores ();
int getlabscores();
int calculatepointgrades ();
int calculatelettergrades ();
int showgradedata ();
int arrayavg ();
double arrayave ();
int students[NO_OF_STUDENTS];
int examscores[NO_OF_STUDENTS];
int labscores[NO_OF_STUDENTS];
int s;
int Exam;
int lab;
int main()

{
int getstudentcount ();
cout << "Enter the number of students" << endl;

for (int s = 0; s <= 10; s++)

{
int students (0);

return 0;
cout << "students[NO_OF_STUDENTS]";

}
int getexamscores ();
cout << "Enter the student exam scores";
return 0;
for(int Exam = 0; Exam <= 10; Exam++)
{
int examscores (0);
cout << "examscores[NO_OF_STUDENTS]";
}
int getlabscores();
cout << "Enter the students lab scores";
return 0;
}
any ideas on what to do?
Last edited on
Your code should like that:
......
examscore[0] = 10;
examscore[1] = 20;
examscore[2] = 30;
examscore[3] = 50;
......

for( int i = 0 ; i < NO_OF_STUDENTS ; i++ ){
cout << i << " " << examscore[i] << " " << etc[i] << " " << etc[i] << endl;
}

You will get the following output:
1 10 etc etc
2 20 etc etc
3 30 etc etc
4 50 etc etc
......
Last edited on
Topic archived. No new replies allowed.