Answered step by step
Verified Expert Solution
Link Copied!

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 +1 for each class )
I/O parsing a new file for new class with new functionality (e.g. 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:: UnivMember(Name 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:: setUnivName(Name uName)
{
string first, last;
first = uName.getFirstName();
last = uName.getLastName();
UnivName = first +""+ last;
}
void UnivMember:: setUnivID(ID uID)
{
UnivID = uID.getfull();
}
void UnivMember:: setRole(string uRole)
{
Role = uRole;
}
void UnivMember:: PrintAll()
{
cout << getRole()<<": "<< getUnivName()<< endl;
cout <<"ID: "<< getUnivID()<< endl << endl;
}
This is ID: #include
#include
#include "ID.h"
using namespace std;
ID::ID()//default constructor
{
static int currentNumber =10000000;
ID_number = currentNumber++; //increments the static int
full_ID ='A'+ to_string(ID_number); //to_string converts the ID number to a string
}
ID::ID(int numID, string fID)
{
ID_number = numID;
full_ID = fID;
}
void ID::setIDNumber(int numID)
{
ID_number = numID;
}
void ID::setFullID(string fID)
{
full_ID=fID;
}
int ID:: getIDnumber()
{
return ID_number;
}
string ID:: getfull()
{
return full_ID;
}
void ID:: printID()
{
cout << full_ID << endl;
}
THIS IS the course list file:
Subject Course Number Section Description Hours CRN Term Instructor Meeting
Times Time
CISC 1100 R01 Structures of Computer Science 310916 Fall 2023 "Seaton, Marlon A."
"Monday,Thursday" 08:30 AM -09:45 AM
CISC 1100 R02 Structures of Computer Science 340113 Fall 2023 "Seaton, Marlon A."
"Tuesday,Thursday" 05:30 PM -06:45 PM
CISC 1100 R03 Structures of Computer Science 349833 Fall 2023 "Pastine, Michael A."
"Tuesday,Friday" 08:30 AM -09:45 AM
CISC 1100 R04 Structures of Computer Science 310931 Fall 2023 "Pastine, Michael A."
"Tuesday,Friday" 01:00 PM -02:15 PM
CISC 1100 R06 Structures of Computer Science 311217 Fall 2023 TBD "Monday,
Thursday" 05:30 PM -06:45 PM
CISC 1400 R01 Discrete Structures 411222 Fall 2023 "Liu, Zigeng " "Tuesday,
Friday" 11:30 AM -12:45 PM
CISC 1400 R02 Discrete Structures 440114 Fall 2023 "Liu, Zigeng " "Tuesday,
Friday" 01:00 PM -02:15 PM
CISC 1600 R01 Computer Science I 349834 Fall 2023 "Trovato, Karen I. " "Monday,
Thursday" 11:30 AM -12:45 PM
CISC 1600 R02 Computer Science I 333074 Fall 2023 "Trovato, Karen I. " "Tuesday,
Friday" 10:00 AM -11:15 AM
CISC 1600 R03 Computer Science I 343030 Fall 2023 "Kounavelis, Nikitas P." "Monday,
Thursday" 04:00 PM -05:15 PM
CISC 1600 R04 Computer Science I 340115 Fall 2023 TBD "Monday,Thursday" 11:
30 AM -12:45 PM
CISC 1600 R06 Computer Science I 336373 Fall 2023 "Kounavelis, Nikitas P." "Tuesday,
Friday" 11:30 AM -12:45 PM
CISC 1610 R01 Computer Science I Lab 149835 Fall 2023 "Trovato, Karen I. "
Tuesday 01:00 PM -02:15 PM
CISC 1610 R02 Computer Science I Lab 133079 Fall 2023 "Trovato, Karen I. "
Monday 01:00 PM -02:15 PM
Do the following in C++please:
a. Extract Prof names from CoursesFall2023 and generate IDs.
i. Save a file of Profs with their IDs +1
Generate IDs for Prof and Student and store them into a file that could be
subsequently read. +1
c. Read the Prof & Student IDs, determining the largest value to set as the next
available FID. +1
d. Add new students, generating FIDs and appending to the existing student
file. +1

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

Excel caculation on cascade mental health clinic

Answered: 1 week ago