Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You will add, modify or extend a class such as University Member, Student or Course. You can have multiple classes in the same program. Please
You will add, modify or extend a class such as University Member, Student or Course.
You can have multiple classes in the same program. Please create a menu if you want to
demonstrate multiple features.
For each object each count as for each class
IO parsing a new file for new class with new functionality eg including time
Inheritance
Overloading Any including: or
Friend function does not double count if overloading or
New different dynamically allocated objects
Templates
New object related to current UM & Student with accessors and mutators.
o Example: Course
This is UnviMember: #include
#include
#include "UnivMember.h
using namespace std;
UnivMember:: UnivMember
UnivName No Name";
UnivID No ID ;
UnivMember:: UnivMemberName uName, ID uID, string uRole
string first, last;
first uName.getFirstName;
last uName.getLastName;
UnivName first last;
UnivID uID.getfull;
Role uRole;
string UnivMember:: getUnivName
return UnivName;
string UnivMember:: getUnivID
return UnivID;
string UnivMember:: getRole
return Role;
void UnivMember:: setUnivNameName uName
string first, last;
first uName.getFirstName;
last uName.getLastName;
UnivName first last;
void UnivMember:: setUnivIDID uID
UnivID uID.getfull;
void UnivMember:: setRolestring uRole
Role uRole;
void UnivMember:: PrintAll
cout getRole: getUnivName endl;
cout ID: getUnivID endl endl;
This is ID: #include
#include
#include IDh
using namespace std;
ID::IDdefault constructor
static int currentNumber ;
IDnumber currentNumber; increments the static int
fullID A tostringIDnumber; tostring converts the ID number to a string
ID::IDint numID, string fID
IDnumber numID;
fullID fID;
void ID::setIDNumberint numID
IDnumber numID;
void ID::setFullIDstring fID
fullIDfID;
int ID:: getIDnumber
return IDnumber;
string ID:: getfull
return fullID;
void ID:: printID
cout fullID endl;
THIS IS the course list file:
Subject Course Number Section Description Hours CRN Term Instructor Meeting
Times Time
CISC R Structures of Computer Science Fall "Seaton, Marlon A
"Monday,Thursday" : AM : AM
CISC R Structures of Computer Science Fall "Seaton, Marlon A
"Tuesday,Thursday" : PM : PM
CISC R Structures of Computer Science Fall "Pastine, Michael A
"Tuesday,Friday" : AM : AM
CISC R Structures of Computer Science Fall "Pastine, Michael A
"Tuesday,Friday" : PM : PM
CISC R Structures of Computer Science Fall TBD "Monday,
Thursday" : PM : PM
CISC R Discrete Structures Fall "Liu, Zigeng "Tuesday,
Friday" : AM : PM
CISC R Discrete Structures Fall "Liu, Zigeng "Tuesday,
Friday" : PM : PM
CISC R Computer Science I Fall "Trovato, Karen I. "Monday,
Thursday" : AM : PM
CISC R Computer Science I Fall "Trovato, Karen I. "Tuesday,
Friday" : AM : AM
CISC R Computer Science I Fall "Kounavelis, Nikitas P "Monday,
Thursday" : PM : PM
CISC R Computer Science I Fall TBD "Monday,Thursday" :
AM : PM
CISC R Computer Science I Fall "Kounavelis, Nikitas P "Tuesday,
Friday" : AM : PM
CISC R Computer Science I Lab Fall "Trovato, Karen I.
Tuesday : PM : PM
CISC R Computer Science I Lab Fall "Trovato, Karen I.
Monday : PM : PM
Do the following in Cplease:
a Extract Prof names from CoursesFall and generate IDs.
i Save a file of Profs with their IDs
Generate IDs for Prof and Student and store them into a file that could be
subsequently read.
c Read the Prof & Student IDs, determining the largest value to set as the next
available FID.
d Add new students, generating FIDs and appending to the existing student
file.
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