ATTENTION : Your project Name shall be like 200201543.dev and you must upload to OTUZEM together with related .cpp files and class interface file.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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:

Reading the grades from CE103-104.txt
The grade book for : CENG103 Introduction to C Programming
The Grades Are :
Student
1: 1111
78
Student
Student
Student
2: 3333
99
3: 1234
77
4: 4567
5: 5555
6: 4444
88
55
Student
Student
total
76
= 473.00, count = 6
Class average is 78.83
Lowest grade is 55
Highest grade is 99
The grade book for : CENG104 Introduction to C++
The Grades Are :
Student
1: 1111
66
2: 4444
Student
63
Student
3: 9999
59
Student
Student
total -
Class average is 74.60
Lowest grade is 59
Highest grade is 97
4: 7778
97
5: 3333
88
373.00, count = 5
Transcribed Image Text:Reading the grades from CE103-104.txt The grade book for : CENG103 Introduction to C Programming The Grades Are : Student 1: 1111 78 Student Student Student 2: 3333 99 3: 1234 77 4: 4567 5: 5555 6: 4444 88 55 Student Student total 76 = 473.00, count = 6 Class average is 78.83 Lowest grade is 55 Highest grade is 99 The grade book for : CENG104 Introduction to C++ The Grades Are : Student 1: 1111 66 2: 4444 Student 63 Student 3: 9999 59 Student Student total - Class average is 74.60 Lowest grade is 59 Highest grade is 97 4: 7778 97 5: 3333 88 373.00, count = 5
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY