Question: Write me this program in c + + , I just want the code: Inheritance Modification Assuming you have completed Programming Challenges 9 and 1

Write me this program in c++, I just want the code: Inheritance Modification
Assuming you have completed Programming Challenges 9 and 10, modify the inheritance hierarchy of the SearchableVector class template so it is derived from the SortableVector class instead of the SimpleVector class. Implement a member function named sortAndSearch, both a sort and a binary search
9.SearchableVector Modification
Modify the SearchableVector class template presented in this chapter so it performs a binary search instead of a linear search. Test the template in a driver program.
10.SortableVector Class Template
Write a class template named SortableVector. The class should be derived from the SimpleVector class presented in this chapter. It should have a member function that sorts the array elements in ascending order. (Use the sorting algorithm of your choice.) Test the template in a driver program.
Use SimpleVector class ( Chapter 16, p.1014), Bubble Sort ( Chapter 8, p.478), and Binary Search ( Chapter 8, p.476) Algorithms.
Test your drive program with the following list of values: <34,12,56,1,78,38,23,90,31,7,7,43,2>. Search the values 3 and 12 in the array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!