General Instructions

  • Start by compiling the program consisting of registration.cpp, enrollment_old.cpp, course.cpp and the .h files they #include. Verify for yourself that it works.
  • Now compare enrollment.cpp with enrollment_old.cpp.
  • Try compiling the program consisting of registration.cpp, enrollment.cpp, course.cpp and the .h files they #include. This will not compile as it is.
  • You should add appropriate functions to course.h and course.cpp so that the program compiles and behaves (with the new enrollment.cpp) as it did originally. You may not change any other files.
  • Make sure to utilize operator overloading.


If the program is run like this:

registration.exe courses1.dat requests1.dat report1.csv

where the input file courses1.dat contains

CS100 50
CS150 3
MATH241 25
HIST300A 5

and requests1.dat contains:

CS150 Doe, John
ART421 Doe, John
CS150 Jones, Jenna
MATH241 Jones, Jenna
CS150 Smith, Stanley
CS150 Ford, Henry

the output on the screen should be:

Doe, John has enrolled in CS150
Doe, John cannot enroll in ART421
Jones, Jenna has enrolled in CS150
Jones, Jenna has enrolled in MATH241
Smith, Stanley has enrolled in CS150
Ford, Henry cannot enroll in CS150

and the output in file report1.csv should be

Academic Honesty!
It is not our intention to break the school's academic policy. Projects posted are only used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.