Question: **MATLAB **PLEASE DO NOT ANSWER IF YOU ARE NOT SURE ABOUT YOUR ANSWER Function Name: geheimfernCipher Inputs: 1. ( char ) Filename to translate 2.

**MATLAB

**PLEASE DO NOT ANSWER IF YOU ARE NOT SURE ABOUT YOUR ANSWER

**MATLAB **PLEASE DO NOT ANSWER IF YOU ARE NOT SURE ABOUT YOUR

Function Name: geheimfernCipher Inputs: 1. ( char ) Filename to translate 2. ( char ) Filename with translations of words File Outputs: 1. A .txt file that has been translated Background: Bletchley Park is having some weird problems breaking certain German encryptions. They've almost got Enigma (no really, they promise) but the primary encryption giving them problems is codenamed Sturgeon. To break it, they need you to design an algorithm with almost surgical precision - so you decide to turn to MATLAB for help. Function Description: You are given two files: An encrypted file, and a file that connects the scrambled words in the first file to the unscrambled words. Use the second file to translate the first file from the encryption system back into readable, unencrypted English. When creating the output file, append '_translated.txt' to the file name given by the first input. Example: If example.txt file contains the following: 1| hurrah gonna 2| exaggerators Exaggerators exaggerators 3| garners cercuses holloes moorhen And exDictionary.txt contains the following: 1| moorhen-bagels 2| gonna-pepperoni 3| hurrah-Ripperoni 4| holloes-takes 5| cercuses-toaster 6| exaggerators-lemon 7| garners-Your 8| Exaggerators-limon Homework 8 - Low Level File I/O >> geheimfernCipher('example.txt', 'exDictionary.txt') Should create a new file, example_translated.txt that contains: 1| Ripperoni pepperoni 2| lemon limon lemon 3| Your toaster takes bagels 4| Notes: The words in the dictionary file will always be in the format ' scrambled-unscrambled' . You should have an extra line at the end of the file as seen in the example above. All words will need to be translated. The file to be translated will only contain words and spaces and will not have punctuation. All words are guaranteed to be in the dictionary. The words to translate are case sensitive Hints: You can close and reopen the same file in your code many times

Function Name: geheimfernCipher Inputs: 1. (char) Filename to translate 2. (char) Filename with translations of words File Outputs: 1. A txt file that has been translated Background: Bletchley Park is having some weird problems breaking certain German encryptions. They've almost got Enigma (no really, they promise) but the primary encryption giving them problems is codenamed Sturgeon. To break it, they need you to design an algorithm with almost surgical precision - so you decide to turn to MATLAB for help. Function Description You are given two files: An encrypted file, and a file that connects the scrambled words in the first file to the unscrambled words. Use the second file to translate the first file from the encryption system back into readable, unencrypted English. When creating the output file append-translated. txt' to the file name given by the first input. Example: If example.txt fle contains the 1 hurrah gonna 2l exaggerators Exaggerators exaggerators 1 garners cercuses holloes moorhen And exDictionary.txt contains the 1l moorhen-bagels 2l gonna-pepperoni hurrah-Ripperoni 4 holloes-takes 5| cercuses-toaster 6l exaggerators-lemon 71 garners-Your 8 Exaggerators-1imon Homework 8-Low Level File VO > geheinmfernCipher('example.txt",exDictionary.txt') Should create a new file, example_translated.txt that contains 1| Ripperoni pepperoni 2l lemon limon lemon 3l Your toaster takes bagels Notes The words in the dictionary file will always be in the format 'scrambled-unscrambled . You should have an extra line at the end of the fle as seen in the example above. All words will need to be translated . The file to be translated wil only contain words and spaces and will not have punctuation .All words are guaranteed to be in the dictionary e The words to translate are case sensitive Function Name: geheimfernCipher Inputs: 1. (char) Filename to translate 2. (char) Filename with translations of words File Outputs: 1. A txt file that has been translated Background: Bletchley Park is having some weird problems breaking certain German encryptions. They've almost got Enigma (no really, they promise) but the primary encryption giving them problems is codenamed Sturgeon. To break it, they need you to design an algorithm with almost surgical precision - so you decide to turn to MATLAB for help. Function Description You are given two files: An encrypted file, and a file that connects the scrambled words in the first file to the unscrambled words. Use the second file to translate the first file from the encryption system back into readable, unencrypted English. When creating the output file append-translated. txt' to the file name given by the first input. Example: If example.txt fle contains the 1 hurrah gonna 2l exaggerators Exaggerators exaggerators 1 garners cercuses holloes moorhen And exDictionary.txt contains the 1l moorhen-bagels 2l gonna-pepperoni hurrah-Ripperoni 4 holloes-takes 5| cercuses-toaster 6l exaggerators-lemon 71 garners-Your 8 Exaggerators-1imon Homework 8-Low Level File VO > geheinmfernCipher('example.txt",exDictionary.txt') Should create a new file, example_translated.txt that contains 1| Ripperoni pepperoni 2l lemon limon lemon 3l Your toaster takes bagels Notes The words in the dictionary file will always be in the format 'scrambled-unscrambled . You should have an extra line at the end of the fle as seen in the example above. All words will need to be translated . The file to be translated wil only contain words and spaces and will not have punctuation .All words are guaranteed to be in the dictionary e The words to translate are case sensitive

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!