Please hlp with this assignment write a series of methods that implement sorting
ID: 3554369 • Letter: P
Question
Please hlp with this assignment
write a series of methods that implement sorting and searching algorithms. You will be provided with a file that contains 2,000 integers (no duplicates). Read the integers from the file and store them in an int array. Store the output for each method in a different text file.
TEXT FILE with 2000 words: http://textuploader.com/ttrx
Create the following methods
1. linear Search using loops which will return an integer number representing the index number of the element containing the search value or -1 if the value was NOT found. This method will receive an integer array and integer search value as parameters. The body of this method should be written using loops.
2. BubbleSort: This public static void method will implement the bubble sort algorithm using loops. It will receive an unsorted integer array as input, and will reorder the elements of the array.
3. Selection_Sort: This public Static void method will implement the selection sort algorithm using loops. It will receive an unsorted integer array as input, and will reorder the elements of the array.
4. Insertion Sort: This public Static void method will implement the insertion sort algorithm using loops. It will receive an unsorted integer array as input, and will reorder the elements of the array.
Explanation / Answer
http://pastebin.com/XUW0bh6h
make sure you have all the numbers in the file "numbers.txt".
Comment below if you have any issues.
Rate me 5 stars if this was helpful. Thanks