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
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