Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a c++ program that makes a collection of students. Your data file contains a set of information about students. Your program should contain four

Write a c++ program that makes a collection of students. Your data file contains a set of information about students. Your program should contain four classes: StudentCollection, StudentProfile, Person, Student, and Course. Student Collection is not a class but rather is a vector in this program.

StudentCollection has the following attributes:

vector StCollection;

StudentProfile class has the following attributes:

Person PersonalInfo Student StdInfo

Person class has the following attributes:

long SSN string Fname string Lname int Age char Gender (M for Male and F for Female)

Student class has the following attributes:

long StNo Course Course1 Course Course2 Course Course3

Course Course4

Course Course5

Course class has the following attributes:

long CourseNum string CourseName

Notes:

Each class should have set and print functions

Note that you are NOT allowed to make the attributes public for this lab. All attributes must be private and your methods should be public.

You must divide your files into .cpp and .h file.

TRansaction file contains the following information:

123456789

Mary

Anderson

20

F

9800300699

32451

CS211

23145

CS231

87690

Phy301

25677

Chem210

22213

Math210

633322789

Mike

Smith

22

M

9080022299

32251

CS111

11122

Math110

87969

Phy200

25627

Chem110

33313

Bio211

631322111

Michelle

Brown

25

F

611354321

11111

CS911

22222

Math912

33333

Phy913

44444

Chem914

55555

Bio915

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 Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions