Numeric Array - Bubble Sort and Binary Search (2006, 2000)

A class Sort contains an array of 50 integers. Some of the member functions/data members are given below:

Class name                            : Sort

Data members                                 

       arr[ ]                               : integers

       item                                : number to be searched for in the array 

 Member Functions/methods:

       void inpdata( )                : to input 50 integers (no duplicate numbers are to be entered).

       void bubsort( )                : to sort the array in ascending order using the bubble sort

                                                 technique and to display the sorted list.

       void binsearch( )             : to input item and search for it using the binary search

                                                  technique; if found to print the item searched and its position

                                                  in the sorted list, otherwise to print an appropriate message.

                                         

Specify the class Sort giving the details of the functions void inpdata( ), void bubsort( ) and void binsearch( ). The main function need not be written.