Question: Part 1 : Design a program / project / driver class YourNameAssignment 2 and the following classes ( with exact 1 names, replace YourName with
Part : Design a programprojectdriver class YourNameAssignment and the following classes with exact names, replace YourName
with your actual first name or the name you go by no spaces:
YourNameArray A new class that contains an array called Array of integers, a constructor that takes an array as
parameter to create the array Array, and the following sorting methods:
YourNamePrint that prints the array Array to the console in this format: ARRAYElement Element
ElementN where ElementK is the number from position K in the Array
YourNameInsertionSort that sorts the array Array using insertion sort and outputs INSERTION SORT
and prints the sorted array using YourNamePrint method
YourNameBubbleSort that sorts the array Array using bubble sort and outputs BUBBLE SORT and prints
the sorted array using YourNamePrint method
YourNameMergeSort that sorts the array Array using merge sort and outputs MERGE SORT and prints the
sorted array using YourNamePrint method.
YourNameQuickSort that sorts the array Array using quick sort and outputs QUICK SORT and prints the
sorted array using YourNamePrint method.
YourNameSortAlgorithmComplexity that outputs to the console for each of the sorting algorithms
above, their complexity in BigO notation and an explanation of which one of the sorting
methods is better and why. This method does not compute anything, just outputs the complexity and
explanation as text.
YourNameList A complete version of userdefined MyList class from Chapter meaning you need to add the code for
the methods that were not coded in the book and have an Left as an exercise comment in the
body Add an additional YourNamePrint method that prints the list in the format: Element Element
ElementN where ElementK is the number from position K in the YourNameList
YourNameArrayList A complete version of the userdefined MyArrayList class from Chapter that codes all the methods and
uses the YourNameList instead of MyList. Add an additional YourNamePrint method that prints the list in
the format: ARRAYLIST Element Element ElementN where ElementK is the number from
position K in the YourNameArrayList
YourNameLinkedList A complete version of the userdefined MyLinkedList class from Chapter that codes all the methods
and uses the YourNameList instead of MyList. Add an additional YourNamePrint method that prints the
list in the format: LINKEDLIST Element Element ElementN where ElementK is the number
from position K in the YourNameLinkedList
YourNameQueue A complete version of the userdefined GenericQueue class from Chapter that codes all the methods
and uses a YourNameLinkedList instead of the predefined LinkedList used in textbook. Add an
additional YourNamePrint method that prints the list in the format: QUEUE Element Element
ElementN where ElementK is the number from position K in the YourNameQueue.
YourNameAssignment
driver class main
method
Creates an array of integers, read values from the userconsole and build instances of the user
defined lists above YourNameArray YourNameArrayList, YourNameLinkedList, and YourNameQueue with
the values and testdemonstrate ALL their functionalitymethods from the classes especially the
YourNamePrint and YourNameSortAlgorithmComplexity, and the sorting methods for YourNameArray.
Adapt them to the assignment at hand and use the
appropriate names and add the code and requirements above. You should not add any additional classes or use the corresponding
predefined methods eg use a List object inside the YourNameList, ArrayList object in the YourNameArrayList, etc.
Use the exact names spelling caps parameters, returned values, functionality. You are not going to earn any credit if the classes and methods
do not contain your actual name and do not have the exactprecise names and functionality. Yes, you may find examples in the textbook with
different names and cases and with other methods, but you will need to adapt them to have this exact names and cases.
You can use utilityhelper methods for your sorting methods however the requested methods need to have the exact names that include your
name in them, and use the array called Array of numbers with the exact name Make sure you document all the lines of code.
For example, if the array is it is going to output:
INSERTION SORT: Array
For example, if the array is it is going to output:
BUBBLE SORT: Array
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
