Question: Problem: Create a Linked List, StudentList that contains the IDs and Names of students in COSC220. Then do the following on StudentList 1. Insert the

Problem:

Create a Linked List, StudentList that contains the IDs and Names of students in COSC220. Then do the following on StudentList

1. Insert the following 5 students (in any order) [ def insertStudent (id, name)]

ID Name

101 David

999 Rosa

321 Max

555 Jenny

369 Jack

2. Print all Names in StudentList [ def printStudents()]

3. Determine the size of the list [ def listSize())]

4. Search a student in the StudentList, by ID, to check if a given student exists

[def searchStudent(id)]

5. Correct the name Rosa as Rosy, and the ID 555 as 111 using Update function

6. Delete a student from the list [ def delStudent(id) ] and print the list after deletion

please type code in python

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 Databases Questions!