Write a program that receives a filename as user input. The file is structured as multiple lines containing numbers separated by a single space.For example, this would be an acceptable file:
Your program should open this file and:
IMPORTANT NOTES:
Example 1:
If input is:
and the contents offile1.txtare:
you should first print the content, and then write2to result.txt.
Example 2:
and the contents offile2.txtare:
you should first print the content, and then write3to result.txt.The elements sorted are: 1, 1, 2, 3, 4, 5, 7. In this sequence, 3 is the middle value, so it is the median.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here