Question: rite a program to sort the given data in ascending order using selection sort. Th iven data is stored in the file data.txt. It contains
rite a program to sort the given data in ascending order using selection sort. Th iven data is stored in the file "data.txt". It contains 20 numbers equirements: 1) Your program should read the 20 numbers from the file "data.txt" to an array. 2) You should write a function sort) to sort the array. The main function shoul call this function. (3) Your program should save the sorted result to a file "sorted.txt" Hint
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
