Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*Java* Tasks/Assignments(s) 1. Create SinglyLinked List class. Apply all the following operations as discussed in the lecture: addFirst: to add new node to the beginning

*Java*
image text in transcribed
image text in transcribed
image text in transcribed
Tasks/Assignments(s) 1. Create SinglyLinked List class. Apply all the following operations as discussed in the lecture: addFirst: to add new node to the beginning of the linked list. addLast: to add new node to the end of the linked list. addAtPoistion: to add new node to a specific position in the linked list. Remove First: to remove the first node in the linked list. FindNode: to find a node with specific given value. RemoveNode: to remove a specific node from the list. 2. Add more functionality to SinglyLinkedList class. Each node should hold the following values for courses: Course ID, Course Name, Credit Hours, Instructor. 3. Your application should accept inputs from the user as following: == Dynamic Course List by Singly Linked List ====== === The available operations ==== 1. Add a new course 2. Delete a course 3. Search a specific course 4. Display all courses 5. Exit Enter your choice: Enter the order of the course in the list Enter the course ID: CS310 Enter the course Name: Data Structure Enter the course Hours: Enter the course Instructor: Nehad === Dynamic Course List by Singly Linked List ====== === The available operations ==== 1. Add a new course 2. Delete a course 3. Search a specific course 4. Display all courses 5. Exit Enter your choice: Display List: Course #1 CourseID: CS311 Course #1 CourseName:Data Structure Course #1 CreditHours:2 Course #1 Instructor :Nehad Course #2 CourseID: CS310 Course #2 CourseName:OOP1 Course #2 CreditHours:3 Course #2 Instructor : Mohammed === Dynamic Course List by Singly Linked List = === The available operations 1. Add a new course 2. Delete a course 3. Search a specific course 4. Display all courses 5. Exit Enter your choice: Enter the course ID you want to delete: CS311 First course is Successfully removed Dynamic Course List by Singly Linked List ----- == The available operations ==== 1. Add a new course 2. Delete a course 3. Search a specific course 4. Display all courses 5. Exit Enter your choice: Enter the course ID you want to search: CS310 Found in position# 1 === Dynamic Course List by Singly Linked List ====== ==== The available operations 1. Add a new curse 2. Delete a course 3. Search a specific course 4. Display all courses 5. Exit Enter your choice: End of the program !! 4. Try to apply the following samples in your program: Display All nodes DUO 2 2 2 Display All nodes 2 Display All nodes Find the course with course ID=IM131 Delete Node with CoursID=IM411 Delete Node with CoursID=IM122 Display All nodes Deliverables(s) You are required to implement and deliver a Java program as described in the previous

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

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

Compute an expression for P max t1st2 B(s) > x

Answered: 1 week ago