Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help witing a C++ project that uses arrays, queues and templates for the following program. I need a header file (interface), .cpp (implementation)

I need help witing a C++ project that uses arrays, queues and templates for the following program. I need a header file (interface), .cpp (implementation) file and a .cpp usage file (main program). I need to make an enrollment system for a University. I need to sign up students, ask for name, id and if the person graduate or non -graduate with new students and this information will be written to the text file. I also have the enrollment option but the priority is with graduate students who signed up and then with non-graduates in the need to implement a queue that will look at who is a graduate student and give them priority registration to enroll in a class. I then need to remove the student from the queue and add them to a new txt file for students that are enrolled in the class. So there is another

txt file that I populate with students and another that I will create based on the queue. Thanks in advance!

sample output:

S: sign-up

E: enroll

P: print

Q: quit

Enter choice: S

Enter id: 15

Enter name: Under15

Is a graduate? (Y for graduate/N for undergraduate): N

S: sign-up

E: enroll

P: print

Q: quit

Enter choice: S

Enter id: 20

Enter name: Grad20

Is a graduate? (Y for graduate/N for undergraduate): Y

S: sign-up

E: enroll

P: print

Q: quit

Enter choice: E

Enrolling graduate student: Grad20 (20)

S: sign-up

E: enroll

P: print

Q: quit

Enter choice: E

Enrolling undergraduate student: Under10 (10)

S: sign-up

E: enroll

P: print

Q: quit

Enter choice: P

List of enrolled students:

Grad20 (20)

Under10 (10)

S: sign-up

E: enroll

P: print

Q: quit

Enter choice: Q

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

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions