ATTENTION : Your project Name shall be like 200201543.dev and you must upload to OTUZEM together with related .cpp files and class interface file.
please write c++.
thanks in advance.
ATTENTION : Your project Name shall be like 200201543.dev and you must upload to OTUZEM together with related .cpp files and class interface file.
Ostim Technique University Proffessor is teaching two courses, namely CENG103 and CENG104. For each course registration quota is maximum 25 students. At the end of the semester, both courses final grades are written in the same sequential access file, namely CE103-104.txt. The format of sequential file is given below.
The program will read the CE103-104.txt file and for each course, the average of the final exam grades will be calculated, highest score and lowest score will be found. Your program will define related objects for each course. These operations will be performed by the related course objects' member functions. The class interface file and member functions implementations of the class will be located in separate files.
Hint: Use the sample program files given in the class studies.
Sample CE103-104.txt sequential file format:
StdID courseCode grade
1111 CENG103 78
1111 CENG104 66
3333 CENG103 99
4444 CENG104 63
9999 CENG104 59
1234 CENG103 77
4567 CENG103 88
7778 CENG104 97
5555 CENG103 55
3333 CENG104 88
4444 CENG103 76
//GradeBook.h interface File
using namespace std;
class GradeBook
{
public:
static const int students = 25;
GradeBook(string, int stNo[], const int []);
void setCourseName(string);
string getCourseName();
void displayMessage();
void processGrades();
int getMinimum();
int getMaximum();
double getAverage();
void outputGrades();
private:
string courseName;
int grades[students];
int stdNo[students];
};
Sample output of the program:
Trending now
This is a popular solution!
Step by step
Solved in 2 steps