Problem:
Question 1: How do you write a function to generate an audio collage?
Question 2: Input numbers, any quantity of them up to 50, from a file to an array. When that is done, output the numbers to the screen.
Question 3: Sort numbers in an array: Input numbers, any quantity of them up to 50, from a file into an array. Find the largest number. Exchange (Swap) the largest number with the first number in position 0. Now, looking only at the part of the array from 1 to the end, repeat the swap. Continue until the array is sorted and output the array. This is known as a selection sort. Please make Swap a function.
Write the code step by step and explain it.