The code below is a partial copy of ScoreAnalyzer.cpp, which…
The code below is a partial copy of ScoreAnalyzer.cpp, which was posted on December 1st, 2025. In the text box below, rewrite the main() function only. Rewrite the main() function in ScoreAnalyzer.cpp without mistakes for 10 points, or rewrite the main() function, replacing the // Variable declaration statements and // Program processing statements comments with the code you wrote in response to the list of modifications in the December 1st, 2025 announcement. All modifications must only use concepts which are covered in the textbook and were demonstrated during lecture. The program’s output must be similar to the output shown in my December 4th, 2025 announcement. #include #include #include using namespace std;void selectionSort(int; // create the array // Program processing statements delete, int numel){ int i, j, min, minidx, temp; for (i = 0; i < (numel - 1); i++) { min = num; // assume minimum is the first array element minidx = i; // index of minimum element for (j = i + 1; j < numel; j++) { if (num < min) // if you've located a lower value { // capture it min = num; minidx = j; } } if (min < num) // check whether you have a new minimum { // and if you do, swap values temp = num; num = min; num = temp; } }}