Program 3 Directions Names.txtJoseph smitheLiza roxcY SnowJo…

Program 3 Directions Names.txtJoseph smitheLiza roxcY SnowJoseph FIelding SmithEmMa HalE Smithjoseph Fielding SmIthDavid OMAN McKayLIndA KjaR burToN Write a program that opens the above file, Names.txt, for reading, and writes an alphabetized list of the names to a new file, alpha_names.txt. Above, we show several lines of Names.txt, but in practice, the file may be much longer. All names in the output file should be uppercase. Make sure you read from input and output files as specified on the command line. Complete this program, Exam 2 Part 2: Question 3, on CodeBuddy. Here is an example of the correct output for the file above (again, any case—upper, lower, or mixed—is correct): alpha_names.txtDAVID OMAN MCKAYELIZA ROXCY SNOWEMMA HALE SMITHJOSEPH FIELDING SMITHJOSEPH FIELDING SMITHJOSEPH SMITHLINDA KJAR BURTON We will execute your code with the following command (or something similar): python studentcode.py Names.txt alpha_names.txt  As always, make sure to use system arguments to get the file names or your program will fail.

Program 4 Directions Numbers.txt1          93          -10-4…

Program 4 Directions Numbers.txt1          93          -10-4         100289        4 Write a program that opens a file for reading, sums the pair of numbers, and writes the equation and sum of the numbers to a new file, Sums.txt (or whatever is specified on the command line). The input file is tab-delimited. Numbers.txt (above) and Sums.txt (below) are examples of input and output files, respectively, and we will provide input and output file names on the command line. Below is an example of the correct output for the file above. Notice that there is one space between each of the numbers and mathematical symbols. Complete this program, Exam 2 Part 2: Question 4, on CodeBuddy. Here is an example of the correct output for the file above: Sums.txt1 + 9 = 103 + -10 = -7-4 + 1002 = 99889 + 4 = 93 We will execute your code with the following command: python studentcode.py Numbers.txt Sums.txt As always, make sure to use system arguments to get the file names or your program will fail.