Create a file in your project stocks.txt edit and save the list of stocks included on the… 1 answer below »
2. Create a file in your project stocks.txt edit and save the list of stocks included on the last page of this document. 3. Write a C++ program that does the following: • Read the file into an array • Pass the array in a function that will sort the array (either selection sort or bubble sort) • Request from the keyboard a stock to search • Write a function that will perform a binary search on the array • Display that the stock is or is not found • Continue processing titles until END is typed in • Please refer to the textbook for the sorting/searching algorithms and sample code
Attachments: