Question: Please code in C++ P.11.1 Modify the selection sort algorithm to sort a vector of integers in descending order. Based on Problem P11.1 Modify the
Please code in C++
P.11.1
Modify the selection sort algorithm to sort a vector of integers in descending order.

Based on Problem P11.1 Modify the selection sort algorithm to sort a vector of integers in descending order . Write a program that reads the list of integers from a file dat al .txt into a vector and then uses the above algorithm to sort it. Then display the sorted vector. . You can assume that datal.txt contains only integers (no floating point numbers or strings that are not numbers) and that the file has at least one number. Submit the solution as hmw-5.1.cpp. Sample input-output: datal.txt-Not || X File Edit Format View Help 1 C:Windowslsystem321cmd.exe Before sorting: 1 2 3 4 5 4 3 2 1 After sorting: 5 4 4 332 21 1 Press any key to continue . - - 4 4 2 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
