Write a program in C++, to create a STUDENT class having name of student maximum of 20 characters, and the (whole number) individual marks in four tests and the average

5. Write a program in C++, to create a STUDENT class having name of student maximum
of 20 characters, and the (whole number) individual marks in four tests and the average
(whole number) of these four tests as elements of the class. Also the member function
AVG ( ), READDATA ( ) and DISPLAY ( ) of the class. Read the value of N as number of
students, and their names and respective marks in four tests and store these N student
objects in the program dynamically. Now process this information in member function
AVG ( ) to find the average of marks of these N individual students and store them in the
average data member of these N objects. If the remainder of the average is greater than
or equal to 50% of the divisor, increment the average by one. Print the name and
average of the tests for all students.


Leave a Reply