You will get email Reply within few hours

Friday 31 May 2013

ex1 and ex 2 Generic Search Sort Algorithms & person



Exercise #1

In Chapter 6, we designed the class Person to store the name of a person. Define the method compareTo for the class Person. Also write a program to test your method.
Exercise #2 on page 970

Write a program to test the generic selection sort algorithm, given in this chapter, to create and sort a list of "Person" objects. (Use the class designed in Programming Exercise 1).
Do Programming Exercise #2 on page 970 of the textbook. For this program we will use the Person class on pages 470-471 and the SearchSortAlgorithms<T> class on page 915. Your main program will create an array of Person objects capable of holding the names of 5 presidents. You should instantiate the Person objects and initialize them with the names listed below in the order that they served the US:




Need Solution https://gum.co/YfJQw