Question: Implement a simple application for Pharmacy. All medicines will be stored in a Single linked list ( SLL) . Every node in the linked list

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.

Add a medicine

Delete medicine by name and ID

Update a medicine using the ID

Search for a medicine using a given ID

Sort the linked list using medicine ID

Print all medicines to the screen.

the steps :

use generic to solve this question

use three classes the first class :Node

and the second called : Pharmacy

and the last class called : Main

using java for this question

last thing

i want the solution as a code

and show me the out put

please read all the question

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!