******IN C++************** Create a class, Student, with the following private attributes: name (string), and an array or vector to hold 5 grades (int). The class
******IN C++**************
Create a class, Student, with the following private attributes: name (string), and an array or vector to hold 5 grades (int). The class has public set and get methods as well as a public method to calculate and return the students average grade (as float).The main program will create an array or vector to handle up to 30 students. The data for all students will be read from file studentData.txt (which you will create) and stored into the array or vector of student objects. You must have between 6 and 30 students in your file (read until eof).Your program will process the array or vector of students and write to the console the students name, all grades, and average grade, using a column format. Allow 35 spaces for name, and eight spaces for each grade.After all students are listed, write summary data, one per line, of how many students were in the class, the highest and lowest average grade, and the average grade for the entire class.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started