Class indexedarray contains the employee code of 100 employees. Some of the member function/data members are given below.
Class name: : indexedarray
Data members/ instance variables :
arr[ ] : integer type
sum : double
Member functions/methods
indexedarray( ) : constructor
void fillarr( ) : to input the code in the arr[ ]
void sortarr( ) : to sort the array variable using selection sort technique.
int binarysearch(int [ ], int) : to search and return 1 if an employee code is found
in the array object otherwise return 0.
Specify the class indexedarray giving details of the constructor, void sortarr( ), int binarysearch( ). You may assume, other functions are written for you and you do not need to write the main function.