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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started