Quote:
#include <iostream>
#include <string>
using namespace std;
const int EXAM_LIMIT = 3;
const int STUDENT_LIMIT = 10;
class Student
{
public:
Student();
string getFullName();
void setName( string theFirstName, string theLastName );
int getID();
void setID( int theID );
double getExamScore( int examNumber );
void setExamScore( int examNumber, double score );
double getExamAverage();
private:
int ID;
string firstName, lastName;
double exams[EXAM_LIMIT];
};
this is a copy of what is happening in the console panel. hopefully you can see what i am trying to communicate that it is doing, thanks
Quote:
1. Add a new student to roster.
2. Enter exam score for all students.
3. Display student exam averages.
4. Display course information for all students.
5. Exit program:
1
Please enter students first and last name.
Jessie Brown
Enter student ID.
262750619
Brown, Jessie
ID: 262750619
1. Add a new student to roster.
2. Enter exam score for all students.
3. Display student exam averages.
4. Display course information for all students.
5. Exit program:
1
Please enter students first and last name.
Bill Brown
Enter student ID.
259419917
Brown, Bill
ID: 259419917
1. Add a new student to roster.
2. Enter exam score for all students.
3. Display student exam averages.
4. Display course information for all students.
5. Exit program:
2
Enter Exam number and score.
0
95
Enter Exam number and score.
0
65
1. Add a new student to roster.
2. Enter exam score for all students.
3. Display student exam averages.
4. Display course information for all students.
5. Exit program:
4
Brown, Jessie
ID: 262750619
95
-1
-1
Avg = 95
Brown, Bill
ID: 259419917
95
-1
-1
Avg = 65
1. Add a new student to roster.
2. Enter exam score for all students.
3. Display student exam averages.
4. Display course information for all students.
5. Exit program:
2
Enter Exam number and score.
1
85
Enter Exam number and score.
1 75
1. Add a new student to roster.
2. Enter exam score for all students.
3. Display student exam averages.
4. Display course information for all students.
5. Exit program:
4
Brown, Jessie
ID: 262750619
95
75
-1
Avg = 90
Brown, Bill
ID: 259419917
95
75
-1
Avg = 70
1. Add a new student to roster.
2. Enter exam score for all students.
3. Display student exam averages.
4. Display course information for all students.
5. Exit program:
2
Enter Exam number and score.
2
85
Enter Exam number and score.
2 85
1. Add a new student to roster.
2. Enter exam score for all students.
3. Display student exam averages.
4. Display course information for all students.
5. Exit program:
4
Brown, Jessie
ID: 262750619
95
75
-1
Avg = 88.3333
Brown, Bill
ID: 259419917
95
75
-1
Avg = 75
1. Add a new student to roster.
2. Enter exam score for all students.
3. Display student exam averages.
4. Display course information for all students.
5. Exit program:
Thank you so very much.