Question: Question 1: Implement Binary_Search method to search in an array of type Course . The course has the following attributes: Name : String Credit_hours :

Question 1:

Implement Binary_Search method to search in an array of type Course.

The course has the following attributes:

Name : String

Credit_hours : intger

Instructor: String

Sort the array using the name, and use the name in the search. Use any sorting algorithm

Write a main method to test the

using java to solve this question

show me the main method

show me the out put

explain every step

Question 2 :.

Implement a simple application for Pharmacy. All medicines will be stored in a Doubly linked list (DLL). 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.

Use generic to solve this Question

Make Four classes

1.Medicen

2.Pharmacy

3.Node

4.Main

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!