Question: In the first question, use a single list and store the given data using genirec I want this solution like this Please I want from

 In the first question, use a single list and store the

In the first question, use a single list and store the given data using genirec I want this solution like this

given data using genirec I want this solution like this Please I

Please I want from you to read question Carefully apply what you see in front of you

Implement a simple application for Pharmacy. All medicines will be stored in a Single linked list (SLL). Every node in the linked list stores information for medicine as follows. - Medicine ID: string - Medicine name: string - Medicine Company: string - Medicine Price: float The following functionalities should be implemented. 1. Add a medicine 2. Delete medicine by name and ID 3. Update a medicine using the ID 4. Search for a medicine using a given ID 5. Sort the linked list using medicine ID 6. Print all medicines to the screen. public class Node\{ private T data; private Node next; public Node(T data) \{ this.data = data; \} public Node getNext()\{ return next; \} public void setNext(Node node) \{ this.next = node; \} public T getData() \{ return data; \} public String toString() \{ return String.valueOf(data); \} public class LinkedList { private Node head; public LinkedList() \{ this.head = null; \} public Node getHead()\{ return head; \} public void setHead(Node newNode) \{ this.head = newNode; public boolean isEmpty() \{ if(getHead() == null) \{ return true; return false: return false

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!