Assignment: Search and Sorting Algorithm
Write a Java application that performs the following task:
1) Create an int array (you can declare the values yourself, or use the Random feature in java to create this array)
2) Sort the data.
3) Prompt user to input an integer from the keyboard
4) Search for the user input value in the array created in step 1 using a simple linear search.
5) Display a message whether the user input has been found in the array, at what position, and how many steps the program required to search for the data value.
6) Search for the user input value in the array created in step 1 using another (hopefully more efficient) search algorithm.
7) Display a message whether the user input has been found in the array, at what position, and how many steps the program required to search for the data value.
Format your assignment according to the following formatting requirements:
(1) The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.
(2) The response also includes a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.
(3) Also include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.