Page 1 of 2 Updated on: 2020-01-23 CPS 151/Spring 2020 In-class Assignment 1 Textbook reference: See discussion of how to insert (add) and remove (delete) an item in a partially filled array while maintaining order of existing items (subsections 6.3.6, 6.3.7). The concept of a partially filled array is discussed in subsection 6.1.3. The program is supposed to: a) allocate storage for an array of integers of a size specified by the user b) fill the array partially with increasing values (number of values chosen by the user) c) check that the item at a user specified index position can be removed, maintaining order of other elements d) check that a new item can be added at a user specified index position, also maintaining order of other elements. Study the startup code and complete the program. You need to complete the validity checks for index position specified by the user. Note that only existing items may be removed, but a new item could be added right after the existing items in the list. Sample output from startup code Page 2 of 2 Updated on: 2020-01-23 Sample Output (successful insert/delete) Sample output with invalid delete/insert positions final static Scanner cin = new Scanner(System.in); static int currentSize; // number of values actually in the intList static int[] intList; // reference to the partially filled array storage /** * @param args the command line arguments */ public static void main(String[] args) { out.println("CPS 151 ICA 1 by _________________________"); setup(); printList(intList, "\nOriginal List"); checkDeletion(); checkInsertion(); printList(intList, "\nFinal List"); out.println("\nGoodbye"); } // end main private static void checkDeletion() { // Checking deletion int position = getInt("\nPosition to delete from: "); // check validity of position if (2 + 2 == 5) { shiftUp(position); currentSize--; printList(intList, "\nList after deletion"); } else { out.println("Invalid delete position, no changes made"); } // end if } // end method private static void checkInsertion() { // Checking insertion int value = getInt("\nValue to insert: "); int position = getInt("At what position? "); // check validity of position if (2 + 2 == 5) { shiftDown(position); intList[position] = value; currentSize++; printList(intList, "\nList after insertion"); } else { out.println("Invalid insert position, no changes made"); } // end if } // end method // fills array with increasing values private static void fillArrayInc(final int startValue, final int howMany) { // Validity check if (h ...