Help Dipper and Mabel discover the secret messages by writing a program that will help you...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Help Dipper and Mabel discover the secret messages by writing a program that will help you uncover the mysteries of a cipher that combines all three methods that you know: A1Z26 cipher Atbash cipher Caesar cipher A combined cipher is a mix of two or more ciphers seen in the show. The first time such a cipher has been used is at the end of "Gideon Rises." It's solved by converting to letters using the A1Z26 cipher, then flipping the letters with the Atbash cipher, and finally by using the Caesar cipher (source). Here's the message that Dipper and Mabel needed to decipher in that episode: 5-19-23-6-21-16 18-9-6 4-16-19 22-12-15-10-20-19-25-19 First, they applied the A1Z26 cipher to the message to get the following message: ESWFUP RIF DPS VLOJTSYS Not very readable. Next, they applied the Atbash cipher to it to get the following message: VHDUFK IRU WKH EOLQGHBH Finally, they applied the Caesar cipher to it... and, yoohoo! The message is: SEARCH FOR THE BLINDEYE You will write a program that tries to decipher the message using all three methods and their combinations. Your program doesn't need to choose the best method. It just needs to try them all. Don't worry, it will be easy for Dipper and Mabel to figure out which method is correct. Likely, there will be only one decrypted message that makes sense. What to do You have already implemented all user-defined functions that you need. Now, your goal is to update your main() function. You can not add any new user-defined functions. Your program must try to decipher a given message with the following ciphers and combinations: 1. Caesar cipher with shift 3 2. Atbash cipher 3. Combined: first apply Caesar cipher with shift 3, then Atbash cipher 4. Combined: first apply Atbash cipher, then Caesar cipher with shift 3 5. A1Z26 cipher 6. Combined: first apply A1Z26 cipher, then Caesar cipher with shift 3 7. Combined: first apply A1Z26 cipher, then Atbash cipher 8. Combined: first apply A1Z26 cipher, then Atbash cipher, then Caesar cipher with shift 3 9. Combined: first apply A1Z26 cipher, then Caesar cipher with shift 3, then Atbash cipher Hints In order to complete requirement 3 (Combined: first apply Caesar cipher with shift 3, then Atbash cipher) you can call the functions in the following manner: decrypted_message = decrypt_atbash (decrypt_caesar (text, 3)) where text in the above statement represents the encrypted message. Program name Save your program as gravity4.py. Test Case 1 Run your program with python gravity4.py. Type 4-16-19 11-23-10 20-9-1-10-5-4-23-15-6-5 15-5 2-19-6-25 21-12-19-2-19-6, then press Enter. Your program should print: Caesar cipher: 4-16-19 11-23-10 20-9-1-10-5-4-23-15-6-5 15-5 2-19-6-25 21-12-19-2-19-6 Atbash cipher: 4-16-19 11-23-10 20-9-1-10-5-4-23-15-6-5 15-5 2-19-6-25 21-12-19-2-19-6 Combined: 1) Caesar; 2) Atbash cipher: 4-16-19 11-23-10 20-9-1-10-5-4-23-15-6-5 15-5 2-19-6-25 21-12-19-2-19-6 Combined: 1) Atbash; 2) Caesar cipher: 4-16-19 11-23-10 20-9-1-10-5-4-23-15-6-5 15-5 2-19-6-25 21-12-19-2-19-6 A1Z26 cipher: DPS KWJ TIAJEDWOFE OE BSFY ULSBSF Combined: 1) A1Z26; 2) Caesar cipher: AMP HTG QFXGBATLCB LB YPCV RIPYPC Combined: 1) A1Z26; 2) Atbash cipher: WKH PDQ GRZQVWDLUV LV YHUB FOHYHU Combined: 1) A1Z26; 2) Atbash; 3) Caesar cipher: THE MAN DOWNSTAIRS IS VERY CLEVER Combined: 1) A1Z26; 2) Caesar; 3) Atbash cipher: ZNK SGT JUCTYZGOXY OY BKXE IRKBKX Help Dipper and Mabel discover the secret messages by writing a program that will help you uncover the mysteries of a cipher that combines all three methods that you know: A1Z26 cipher Atbash cipher Caesar cipher A combined cipher is a mix of two or more ciphers seen in the show. The first time such a cipher has been used is at the end of "Gideon Rises." It's solved by converting to letters using the A1Z26 cipher, then flipping the letters with the Atbash cipher, and finally by using the Caesar cipher (source). Here's the message that Dipper and Mabel needed to decipher in that episode: 5-19-23-6-21-16 18-9-6 4-16-19 22-12-15-10-20-19-25-19 First, they applied the A1Z26 cipher to the message to get the following message: ESWFUP RIF DPS VLOJTSYS Not very readable. Next, they applied the Atbash cipher to it to get the following message: VHDUFK IRU WKH EOLQGHBH Finally, they applied the Caesar cipher to it... and, yoohoo! The message is: SEARCH FOR THE BLINDEYE You will write a program that tries to decipher the message using all three methods and their combinations. Your program doesn't need to choose the best method. It just needs to try them all. Don't worry, it will be easy for Dipper and Mabel to figure out which method is correct. Likely, there will be only one decrypted message that makes sense. What to do You have already implemented all user-defined functions that you need. Now, your goal is to update your main() function. You can not add any new user-defined functions. Your program must try to decipher a given message with the following ciphers and combinations: 1. Caesar cipher with shift 3 2. Atbash cipher 3. Combined: first apply Caesar cipher with shift 3, then Atbash cipher 4. Combined: first apply Atbash cipher, then Caesar cipher with shift 3 5. A1Z26 cipher 6. Combined: first apply A1Z26 cipher, then Caesar cipher with shift 3 7. Combined: first apply A1Z26 cipher, then Atbash cipher 8. Combined: first apply A1Z26 cipher, then Atbash cipher, then Caesar cipher with shift 3 9. Combined: first apply A1Z26 cipher, then Caesar cipher with shift 3, then Atbash cipher Hints In order to complete requirement 3 (Combined: first apply Caesar cipher with shift 3, then Atbash cipher) you can call the functions in the following manner: decrypted_message = decrypt_atbash (decrypt_caesar (text, 3)) where text in the above statement represents the encrypted message. Program name Save your program as gravity4.py. Test Case 1 Run your program with python gravity4.py. Type 4-16-19 11-23-10 20-9-1-10-5-4-23-15-6-5 15-5 2-19-6-25 21-12-19-2-19-6, then press Enter. Your program should print: Caesar cipher: 4-16-19 11-23-10 20-9-1-10-5-4-23-15-6-5 15-5 2-19-6-25 21-12-19-2-19-6 Atbash cipher: 4-16-19 11-23-10 20-9-1-10-5-4-23-15-6-5 15-5 2-19-6-25 21-12-19-2-19-6 Combined: 1) Caesar; 2) Atbash cipher: 4-16-19 11-23-10 20-9-1-10-5-4-23-15-6-5 15-5 2-19-6-25 21-12-19-2-19-6 Combined: 1) Atbash; 2) Caesar cipher: 4-16-19 11-23-10 20-9-1-10-5-4-23-15-6-5 15-5 2-19-6-25 21-12-19-2-19-6 A1Z26 cipher: DPS KWJ TIAJEDWOFE OE BSFY ULSBSF Combined: 1) A1Z26; 2) Caesar cipher: AMP HTG QFXGBATLCB LB YPCV RIPYPC Combined: 1) A1Z26; 2) Atbash cipher: WKH PDQ GRZQVWDLUV LV YHUB FOHYHU Combined: 1) A1Z26; 2) Atbash; 3) Caesar cipher: THE MAN DOWNSTAIRS IS VERY CLEVER Combined: 1) A1Z26; 2) Caesar; 3) Atbash cipher: ZNK SGT JUCTYZGOXY OY BKXE IRKBKX
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Define the composition function f:RnR such that f(x) =h(g(x)). Assume that h is nondecreasing. Prove that if h is convex and g is convex, then f is convex.
-
The Julian calendar was a reform of the Roman calendar introduced by Julius Caesar in 46 BC (708 AUC). It took effect in 45 BC (709AUC). It was the predominant calendar in most of Europe, and in...
-
Briefly explain the DHCP lease process. What packets are sent and when are they sent? (5 marks) Question 2 any three advantages of IPv6 over IPv4? How many classes are there in IPv4 and what is the...
-
Explain the relationship between MPS due, projected available balance (PAB), and available to promise (ATP).
-
Stable storage cannot be implemented. a. Explain why it cannot be. b. Explain how database systems deal with this problem.
-
Given the following information, prepare a statement of cash flows. Increase in accounts receivable $25 Increase in inventories Operating income Interest expense 30 75 12 25 Increase in accounts...
-
Roedel Electronics produces tablet computer accessories, including integrated keyboard tablet stands that connect a keyboard to a tablet device and holds the device at a preferred angle for easy...
-
7. The full symbol of an ion of an element is 39X+? Which one of the following is the number of electrons in the ion? A. 18 B. 19 C. 20 D. 39 8. The atomic numbers of elements W, X, Y and Z are 9,...
-
Using the Public MACRO BITCOIN scorecard spreadsheet (linked in its associated masterclass lesson - Long Term 32), create a COPY of it and perform a complete analysis for the date 22/2/2022....
-
Brewdog plc brews lager and costs the process using process costing. Hops (measured in kg) are added at the start of the process. During the process, the hops are treated with fermenting chemicals...
-
True or False: \(P W, F W, A W, C W\), and \(B / C\) are ranking methods; therefore, the alternative having the greatest \(P W, F W, A W, C W\), or \(B / C\) should be recommended.
-
Compute the time response of the causal system described by the transfer function \[H(z)=\frac{(z-1)^{2}}{z^{2}-0.32 z+0.8}\] when the input signal is the unit step.
-
How is gamma defined?
-
True or False: If \(P W(\mathrm{~A})>P W(\mathrm{~B})\), then \(F W(\mathrm{~A})>F W(\mathrm{~B}), A W(\mathrm{~A})>A W(\mathrm{~B})\), \(C W(\mathrm{~A})>C W(\mathrm{~B}), D P B P(\mathrm{~A})
-
When using present worth to evaluate the attractiveness of a single investment alternative, what value is the calculated PW compared to? a. 0.0 b. MARR c. 1.0 d. WACC
-
Reflect on ABC inc and discuss what stood out the most about the company analysis.
-
Quality Chicken grows and processes chickens. Each chicken is disassembled into five main parts. Information pertaining to production in July 2012 is: Joint cost of production in July 2012 was $50. A...
-
The sort method, when applied to an array of strings, returns a copy of that array in which the strings appear in alphabetical order. For example, if the variable words stored the array ['foo',...
-
Many applications in computer graphics involve determining the relative positions of pixels in the plane. The following formula computes the distance between two points (x1, y1) and (x2, y2). Create...
-
Create a Web page named grades.html that can be used to compute a student's overall average for a course. Your page should contain text boxes where the user can enter his or her homework average, lab...
-
True of False: If money has a time value of 8% compounded annually, you should prefer to receive a uniform series of ten \($1\),000 cash flows over the interval [1,10] to receiving a uniform series...
-
What series of equal annual payments is equivalent to a series of decreasing payments as follows: \($5\),000, \($4\),000, \($3\),000, \($2\),000, \($1\),000 if the interest rate is 10 percent per...
-
You borrow \($10\),000 at 15 percent per year and will pay off the loan in three equal annual payments with the first occurring at the end of the fourth year after the loan is made. The three equal...
Study smarter with the SolutionInn App