Numeric Array - Insertion Sort (2007R)
A class InsSort contains an array of 50 integers. Some of the members of the class are given below:
Class name : InsSort
Data members:
arr[ ] : an array of 50 integers
Member functios:
InsSort( ) : an array of 50 integers
void readarr( ) : to input 50 integers
void showarr( ) : to display the list of sorted integers
void smallarr( ) : returns the index of the smallest integer in the
array before sorting.
void sort( ) : sorts the array in ascending order using the
Insertion sort technique.
Specify the class InsSort giving the details of the constructor and the functions void readarr( ), void showarr( ), int smallarr( ) and void sort( ). The main function need not be written.