Question: Need help with this C++ assignment. The instructions are Instead of always looping through the list from lowest to highest you will alternate. The first
Need help with this C++ assignment. The instructions are "Instead of always looping through the list from lowest to highest you will alternate. The first pass will go from lowest to highest and the next pass will go from highest to lowest. You will use a class called SortTester that will create a list and has built in compare and swap functions. You need to call the compare and swap functions provided for the code to work correctly. You are being tested on your algorithm. You are going to fill in the details for the function singleBubblePass(). The result of that function is to execute either a highest to lowest or lowest to highest single pass of a bubble sort (depending on if pass is odd or even)"
This is what I have so far:
Main.cpp:
#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
