Question: We will be using the 2 classes we created in the previous assignment: the Student class and the Course class. The goal is to create

We will be using the 2 classes we created in the previous assignment: the Student class and the Course class.
The goal is to create a program for a college that tracks a number of courses offered and a list of the students enrolled.
Given files:
main.cpp - contains the main function for demonstrating the 2 different classes and all of their methods.
College.cpp contains methods for the College class.
College.h header file for the College class
Course.cpp contains the methods for the Course class
Course.h - header file for the Course class.
Student.cpp contains the methods for the Student class.
Student.h - header file for the Student class.
The College class
This represents a College
It contains 3 private data members:
string College name
vector of Students
vector of Courses
Create the following methods:
A constructor that takes the college name
GetName()
Offered(courseName) returns true if course is listed
Attends(StudentID) returns true if student is listed
Attends(lastName, firstName) returns true if student listed
The Menu
These are the options the user can perform.
Add a Course
Check if course is offered
Print roster for a course
Print list of all courses offered
Add a Student
Check if student enrolled in the college
Add student to a course
Check if student registered for a course
Print list of all students attending college

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!