Question: using entry level C++ complete the following task Part A. Get the initial program from the class library (lib) 1 Copy lab2.cpp from the class

using entry level C++ complete the following task

Part A. Get the initial program from the class library (lib) 1 Copy lab2.cpp from the class library to your own directory. cs2020$ cp lib/lab2.cpp lab2.cpp Prompt command source dir+file destination dir+file

Part B. Modify the C++ program.

1. Open the lab2.cpp file in the pico editor (you can use Visual Studio and then upload your file to BGLinux).

2. Add a function to sort the array of charge account numbers in ascending order using the bubble sort algorithm.

3. In main, call the sort function after the displayAcctNos and then call displayAcctNos again to show sorted list.

4. Complete the searchList function. It should utilize the binary search algorithm.

5. Compile, debug and run your program until you are sure that it is working correctly.

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!