Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions