Question
You should make up a transaction file with at least 3 records of students. Write a main program that creates a collection of students. Your
You should make up a transaction file with at least 3 records of students.
Write a main program that creates a collection of students. Your transaction file contains a set of information about students. Your program should contain four classes: StudentProfile, Person, Student, and Course.
StudentCollection has the following attributes:
vector
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
Place the following in your transaction file:
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
Get Instant Access to Expert-Tailored Solutions
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