Question: PLEASE DO ACTIVITY 1 and 2. Use java and folllow the instructions carefully. THANKYOU! Part I: Searching Write a program called Search. This program will

PLEASE DO ACTIVITY 1 and 2. Use java and folllow the instructions carefully. THANKYOU!
Part I: Searching Write a program called Search. This program will ask the user to enter in 10 integers in increasing order. Check to make sure all 10 numbers are in increasing order. If they are not in order, continue to ask the user for 10 numbers in increasing order. Then output their list to the screen and ask them for a number to search for. If the number is in the list, display the index location of the number they are searching for. Otherwise, display "The number is not in the list." **Use the linear search to search for the element. The user can enter the same number as many times, you will just display the index location of the first occurrence. Part II: Enhanced For Loops Write a program that uses an initializer list to create a 2D array of integers. This 2D array should have 3 rows and 2 columns. Output the elements in the array using an Enhanced For Loop. Make sure your output appears in a grid (2 x 3). Part III: 2-D Arrays A magic square is a two-dimensional array of positive integers such that the sum of each row, column, and diagonal is the same constant The following example is a magic square whose constant is 34: 16 13 10 7 12 15 14 1 Write a program that takes 16 integers as inputs. The program should determine whether or not the square is a magic square and display the result. Show the grid of numbers (do not worry about making the boxes) Do not allow the user to enter in negative numbers. You should keep asking until all 16 numbers are positive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
