Question: Using a programming language of your choice, write, test, and debug a program that includes the following features: 1. An implementation of bubblesort with the

Using a programming language of your choice, write, test, and debug a program that includes the following features:

1. An implementation of bubblesort with the following method signature: void bubblesort(int[] arr)

2. An implementation of a sorting algorithm of your choice with the following method signature: void [algorithmname](int[] arr)

3. An implementation of bubblesort with the following method signature: void bubblesort(String[] arr)

4. An implementation of a sorting algorithm of your choice with the following method signature: void [algorithmname](String[] arr)

5. An implementation of a linear search with the following method signature (the method should return -1 if the item is not found): int linearSearch(int[] arr, int valueToFind)

6. An implementation of a binary search with the following method signature (the method should return -1 if the item is not found): int binarySearch(int[] arr, int valueToFind)

7. An implementation of a linear search with the following method signature (the method should return -1 if the item is not found): int linearSearch(String[] arr, String valueToFind ) 8. An implementation of a binary search with the following method signature (the method should return -1 if the item is not found): int binarySearch(String [] arr, String valueToFind) 9. An implementation of a Hashtable class with the following methods: void add(string key, string value) string remove(string key) /* returns the removed value or NULL if it did not exist in the table */ bool contains(string key) int getCount() /* the number of items in the table */

10. A main method that demonstrates each algorithm and its results.

You may define auxiliary methods or variables as needed.

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!