Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Students also viewed these Databases questions

Question

Modeled way to get attention (see above)

Answered: 1 week ago