Menu

[Solved] 20 Points Write Client Program Processes Student Data Using Student Class Defined Program Q37206131

(20 points) Write a client program that processes student data using the Student class defined above. The program first asks

8 e 2 of 5 30 points) A class Student has the following class Student private: string firstName: /to hold a stuens string las(20 points) Write a client program that processes student data using the Student class defined above. The program first asks the user to enter information for N students and then displays each student data entered and the calculated average score as the foll example. Suppose N is a constant. A sample output of the program for the case of N 3 can look like this: 3. Enter student data by the order of first name, last name sid, testl, test2, test3: Student 1 John Smith 10111 89 68 91 Student 2 Mary Johnson 23410 95 88 91 Student 3Rosie Potter 32451 84 74 83 The student data: Testi Test2 Test3 Average FirstName LastNameID John Mary Rosie 82 7 91.3 91 91 83 68 10111 89 Smith Johnson23410 95 Potter 80.3 74 32451 84 8 e 2 of 5 30 points) A class Student has the following class Student private: string firstName: /to hold a stuens string lastNane;/to hold nt scores int id; float tests(3]: /to hold three te a student id public: Student); Student(string, string, int, floatt void setlastNane (string): void setTests(float[); float average() const; oatl)i st I/some more member functions istreamá friend friend ostcea operator> (istream&, Student&); operator << (ostream&, const Student8 ng member functions in “Student.cpp” plement the following Implement the constructor that initializes student’s data with enm a. Show transcribed image text (20 points) Write a client program that processes student data using the Student class defined above. The program first asks the user to enter information for N students and then displays each student data entered and the calculated average score as the foll example. Suppose N is a constant. A sample output of the program for the case of N 3 can look like this: 3. Enter student data by the order of first name, last name sid, testl, test2, test3: Student 1 John Smith 10111 89 68 91 Student 2 Mary Johnson 23410 95 88 91 Student 3Rosie Potter 32451 84 74 83 The student data: Testi Test2 Test3 Average FirstName LastNameID John Mary Rosie 82 7 91.3 91 91 83 68 10111 89 Smith Johnson23410 95 Potter 80.3 74 32451 84
8 e 2 of 5 30 points) A class Student has the following class Student private: string firstName: /to hold a stuens string lastNane;/to hold nt scores int id; float tests(3]: /to hold three te a student id public: Student); Student(string, string, int, floatt void setlastNane (string): void setTests(float[); float average() const; oatl)i st I/some more member functions istreamá friend friend ostcea operator> (istream&, Student&); operator

Expert Answer


Answer to (20 points) Write a client program that processes student data using the Student class defined above. The program first … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *