Create a file called unsorted.dat and copy (or type) the following floating point numbersinto that file.12.759.39-15.2518.3412.65-23.7815.2510.427.39Now, create a program file called Time3.cpp with the following requirements.• In your main function, read the unsorted.dat file in an array. You do not knowexactly how many numbers there are in the file (your program should be generic),so declare an array of sufficiently large size and use the while loop to read thenumbers into the array.• Then, use a programmer-defined function to sort this array in ascending order. Youcannot create a separate array for this purpose. You need to call this function andpass the array to this function from the main function.• In your main function, write the sorted array to an output file named sorted.dat.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here