Question: In C#: Write a console app which makes use of generic LinkedList data structure ( Refer code examples covered during the lecture) to maintain the

In C#:

Write a console app which makes use of generic LinkedList data structure ( Refer code examples covered during the lecture) to maintain the list of students ( add at least 5, you need to create a student class ( Student.cs, with properties ID and Name and appropriate constructors and overriding of ToString() method.) and demonstrate the use of following operations on the student linked list.

a) Add a student to the list (You need to define a method AddLinkedListItem( LinkedList name , Student object) and inside that you can use built-in method of LinkedList class AddFirst or AddLast

b) Remove a student from the list (You need to define a method RemoveLinkedListItem( LinkedList name , Student object) and inside that you can use built-in method of LinkedList class Remove)

c) Displaying the items of the linked list. (You need to define a method PrintLinkedList( LinkedList name) , and inside that you can use built-in method of LinkedList class)

d) Search a student (You need to define a method SearchLinkedListItem( LinkedList name, Student object) , and inside that you can use built-in method of LinkedList class)

e) Clearing the linked list. (You need to define a method RemoveAllLinkedListItems( LinkedList name), and inside that you can use built-in method of LinkedList class)

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!