Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++, #include , using namespace std, No pointers Create a class, Student, with the following private attributes: name (string), and an array or vector to

C++, #include , using namespace std, No pointers

image text in transcribed

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 student's 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 student's 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory And Application Bio Science And Bio Technology International Conferences DTA And BSBT 2011 Held As Part Of The Future Generation In Computer And Information Science 258

Authors: Tai-hoon Kim ,Hojjat Adeli ,Alfredo Cuzzocrea ,Tughrul Arslan ,Yanchun Zhang ,Jianhua Ma ,Kyo-il Chung ,Siti Mariyam ,Xiaofeng Song

2011th Edition

3642271561, 978-3642271564

More Books

Students also viewed these Databases questions