Question: THE ATTACHMENTS:( The attachments (mentioned above) needed to solve the question above are below could not download them onto here so i copied and pasted

THE ATTACHMENTS:( The attachments (mentioned above) needed to solve the question above are below could not download them onto here so i copied and pasted them here )
(1) My Morse Code Program:
#03/22/2018 #Creating a program that translates sentences in to morse code
def main(): morsecode_dict={} line="" f1 = open("MorseCode.txt",'r'); content = f1.readlines() for x in content: #print x x=x.split() my_dict[x[0]]=x[1]
print (morsecode_dict) val=raw_input("Enter a String value: ") val.upper() output="" for i in val: print (i.upper()) if(i!=' '): output = output + morsecode_dict[i.upper()]+' ' else: output = output+' ' print ("-----Morse Code of The Given Sentence----- ",output)
main()
(2) My leap year Program
#prompt user for a year year = int(input("Enter a year: "))
#process year to see if divisible by 4 or, if a century, divisible by 400 if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0): print "The year", year, "is a leap year" else: print "The year", year, "is not a leap year"
(3) testFahr2Cel.bat (won't let me upload files so copy and paste below)
echo off echo "Testing Fahr2Cel.py program" echo. echo "Enter 212F, answer should be 100C" echo 212 | Fahr2Cel.py echo. echo "Enter 32F, answer should be 0C" echo 32 | Fahr2Cel.py echo. echo "Enter -40F, answer should be -40C" echo -40 | Fahr2Cel.py
(4) Fahr2Cel.py (won't let me upload files so copy and paste below)
#!C:\Users\974student\AppData\Local\Programs\Python\Python35-32\python.exe # Converts Fahrenheit to Celsius # 2/10/2015 #input fahrenheit = input('Enter temperature in Fahrenheit: ') fahrenheit = float(fahrenheit) #processing celsius = (fahrenheit - 32.0) * 5/9 #output print ('The temperature in Celsius is', celsius)
LANGUAGE: PYTHON
Instructions Instructions Download the two attached files. TestFahr2Cel.bat is a batch file that tests the Fahr2Cel.py program. It uses the "echo" command. The echo command simply echos what ever follows it to standard out. So echo 212 | Fahr2Cel.py will send the 212 as input to the Fahr2Cel.py program The of keyword is special to echo. The first line, echo o tells he batch processor not ech the command et e executin ? the This s not necessar tust make the output look cleaner. 1) With the downloaded files in the same folder, open a CMD window and "cd" to that folder. Execute the batch file by typing Farh2Cel.bat at the prompt. You may need to change the Shebang line # to the location of your python interpreter. Study how the test program works, and play with changing t a bit. 2) Write a test program for your Morse program. Test at least three cases: a one word input, a phrase with single-letter words likeI or "a", and a very long sentence that word- wraps to the next line. Call your program testMorseCode.bat submit it to Sakai. 3) Write a test program for the LeapYear program under the Decisions Structures lab. Test all paths through the program to verify it handles every case correctly. Call your program testLeapYear.bat - submit it to Sakai You should have two files submitted Additional resources for assignment estFahr2Cel.bat (1 KB; Dec 10, 2017 2:05 pm) Fahr2Cel.py.(1 KB; Dec 10, 2017 2:05 pm) Instructions Instructions Download the two attached files. TestFahr2Cel.bat is a batch file that tests the Fahr2Cel.py program. It uses the "echo" command. The echo command simply echos what ever follows it to standard out. So echo 212 | Fahr2Cel.py will send the 212 as input to the Fahr2Cel.py program The of keyword is special to echo. The first line, echo o tells he batch processor not ech the command et e executin ? the This s not necessar tust make the output look cleaner. 1) With the downloaded files in the same folder, open a CMD window and "cd" to that folder. Execute the batch file by typing Farh2Cel.bat at the prompt. You may need to change the Shebang line # to the location of your python interpreter. Study how the test program works, and play with changing t a bit. 2) Write a test program for your Morse program. Test at least three cases: a one word input, a phrase with single-letter words likeI or "a", and a very long sentence that word- wraps to the next line. Call your program testMorseCode.bat submit it to Sakai. 3) Write a test program for the LeapYear program under the Decisions Structures lab. Test all paths through the program to verify it handles every case correctly. Call your program testLeapYear.bat - submit it to Sakai You should have two files submitted Additional resources for assignment estFahr2Cel.bat (1 KB; Dec 10, 2017 2:05 pm) Fahr2Cel.py.(1 KB; Dec 10, 2017 2:05 pm)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
