Question: Task # 1 ( 5 0 points ) Your task is to modify your program for Project 8 . modify the add _ student function

Task #1(50 points)Your task is to modify your program for Project 8.modify the add_student function receives the registration linked list and the values for student name, NetID, COP2510 grade, GPA, and number of previous attempts, and adds the new student to the registration linked list so that the nodes in the list are kept in order by number of previous attempts in decreasing order; students with the same number of previous attempts are inserted in first come, first serve basis; this function returns a pointer to the updated queue;Example (your program must follow this format precisely)Example #1List of operation codes: 'h' for help; 'a' for adding a student to the queue; 'p' for removing a student from the queue; 'l' for listing all students in the queue; 'g' for searching students with a minimum GPA; 'c' for searching students with a minimum grade in COP2510; 'q' to quit.Enter operation code: aEnter the name of the student: Mauricio PamplonaEnter the NetID of the student: mauriciopEnter the COP2510 letter grade: BEnter the GPA: 2.5Enter the number of previous attempts: 0Enter operation code: aEnter the name of the student: Jing WangEnter the NetID of the student: jwEnter the COP2510 letter grade: AEnter the GPA: 3.5Enter the number of previous attempts: 2Enter operation code: aEnter the name of the student: Amanda HollomanEnter the NetID of the student: akhollomanEnter the COP2510 letter grade: AEnter the GPA: 3.8Enter the number of previous attempts: 1Enter operation code: aEnter the name of the student: John MorganEnter the NetID of the student: jpmorga2Enter the COP2510 letter grade: AEnter the GPA: 3.7Enter the number of previous attempts: 2Enter operation code: l|----------------------|----------------------|---------|-----|----------|| Name | NetID | COP2510| GPA | Attempts ||----------------------|----------------------|---------|-----|----------|| Jing Wang | jw | A |3.5|2||----------------------|----------------------|---------|-----|----------|| John Morgan | jpmorga2| A |3.7|2||----------------------|----------------------|---------|-----|----------|| Amanda Holloman | akholloman | A |3.8|1||----------------------|----------------------|---------|-----|----------|| Mauricio Pamplona | mauriciop | B |2.5|0||----------------------|----------------------|---------|-----|----------|Enter operation code: qSubmission instructions

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!