Q)
(chatquestion)...6. A class admission contains of 100 students. Some of the data members/member functions are given below:
Class name
Data members/Instance Variables
Adno]
Admission
integer array to store admission numbers
Member functions
constructor to initialize the array elements
to accept the elements of the array in ascending order
to search for a particular admission number (v) using binary search and recursive
Admission ()
Void fillArray()
Int binsearch(int I, int u, int y)
technique and returns 1 if found otherwise returns -1
Specify the class Admission giving details of the constructor(), void fillArray() and int binSearch(int I, int u, int y). Define the
main() function to create the object and call the function accordingly to enable the task.
1 Answer
...