Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please write this Java program as simple as possible and with comments throughou

ID: 3730199 • Letter: P

Question

Please write this Java program as simple as possible and with comments throughout explaining what is happening. Thank you!
Exercise 3: Design and implement a Java program for programming exercise 7.15, page 279 (name it EliminateDuplicates), as specified in the problem statement. Follow the instructions in th problem statement to design your method (the method eliminateDuplicates () must be designed to return an armay of the minimum size necessary to hold the unique values, not modify the input and handle amrays with any number of elements, not just the ten the textbook exercise requires to be read by the test program). Design the main method of your program to handle all input and output and to allow the user to re-run the program with different sets of inputs. Follow the input an output model in the textbook and use the given sample run to test your code. Document your code and organize the output using appropriate formatting techniques

Explanation / Answer

/* Algorithm: You can do this problem using sequential search over array 1.create an uniqueArr of size list.size 2.Iterate over each element of given array 3.--Check for current element of given array in the uniqueArr using sequential search 4.--If Not found then insert element to uniqueArr 5.Declare one more array of size uniqueArr and copy all the elements and return response * Sample Input: * Enter the size of the array:8 Enter 8 elements:5 2 3 4 1 2 3 4 Sample Output: All unique numbers: 5 2 3 4 1 */ //Please create EliminateDuplicates.java file and copy code from below line to the end of answer and execute import java.util.Scanner; public class EliminateDuplicates { //method to remove duplicate public static int[] eliminateDuplicates(int [] list) { int uCount=0; int[] uniqueArr=new int[list.length]; //Iterating on list array for(int i=0;i