Answered You can hire a professional tutor to get the answer.
Problem Task In this problem, your input file will contain a number of ciphertext and key pairs, separated by a space. You may assume that the...
Problem Task
In this problem, your input file will contain a number of ciphertext and key pairs, separated by a space. You may assume that the ciphertext contains only uppercase letters. However, it is possible that the key may be missing, and your program should handle this case.
The ciphertext has been encrypted by shifting letters in the alphabet by the amount specified by the key. The word HELLO with key = 2 becomes JGNNQ. Letters should wrap around, so PIZZA with key = 1 becomes QJAAB. If the key is missing, your program should output a message "Missing key!". The sample run below is for the inputs from secret_code.txt:
Sample Run[evaluate codebreaker]Enter the input filename: secret_code.txtPYTHONMissing key!ALBERTASUNCMPUTUNIVERSITYsecret_code.txt is a txt file includes:
CLGUBA 13JGNNQZKADQSZ 1OQJ 4AKNSR 2NGBOXKLBMR 7