Question: Task # 1 ( 5 0 points ) Your task is to modify your program for Project 8 . modify the add _ student function
Task # pointsYour task is to modify your program for Project modify the addstudent function receives the registration linked list and the values for student name, NetID, COP 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 preciselyExample #List 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 COP; q to quit.Enter operation code: aEnter the name of the student: Mauricio PamplonaEnter the NetID of the student: mauriciopEnter the COP letter grade: BEnter the GPA: Enter the number of previous attempts: Enter operation code: aEnter the name of the student: Jing WangEnter the NetID of the student: jwEnter the COP letter grade: AEnter the GPA: Enter the number of previous attempts: Enter operation code: aEnter the name of the student: Amanda HollomanEnter the NetID of the student: akhollomanEnter the COP letter grade: AEnter the GPA: Enter the number of previous attempts: Enter operation code: aEnter the name of the student: John MorganEnter the NetID of the student: jpmorgaEnter the COP letter grade: AEnter the GPA: Enter the number of previous attempts: Enter operation code: l Name NetID COP GPA Attempts Jing Wang jw A John Morgan jpmorga A Amanda Holloman akholloman A Mauricio Pamplona mauriciop B Enter operation code: qSubmission instructions
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
