Numeric Array - Selection Sort (2002)
Class Sorter contains an array of 100 integers. Some of the member functions/methods of Sorter are given below:
Class name: : Sorter
Data members/instance variables:
arr[ ] : an array of 100 integers
Member functions/methods:
Sorter() : constructor
void readlist() : to input 100 integers
void displaylist() : to display the list if sorted integers
int indexofmin(int startindex)
: returns the index/ subscript of the smallest integer in the
array, between the startindex and the last index
void selectionsort() : sorts the array in ascending order using the selection
sort algorithm
Specify the class Sorter giving the details of the constructor and the functions void displaylist( ), int indexofmin(int startindex), void selectionsort( ). You may assume that the other functions are written for you. You do not need to write the main function.