in python, thank you so much! Morse code was created to transmit messages over the telegraph. It
Fantastic news! We've Found the answer you've been seeking!
Question:
in python, thank you so much!
Transcribed Image Text:
Morse code was created to transmit messages over the telegraph. It uses dots and dashes to signal letters. Below are two lists. letters lists the 26 letters of the alphabet and some punctuation marks. morse lists the Morse code for each letter. Take this example: test = ['-..', .'] The first code is .. (dash-dot-dash-dot). That is the third entry in the morse list, which is 'c'. The second is...' which is '1'. Continuing this way, test translates to: 'close gate!. > letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', morse = ['.-', 1. Create a decoder dict that holds the roman letters and their Morse codes. We will use this to translate Morse code to roman letters. Should the Morse codes be the keys or should the roman letters be the keys? 2. Use your dict to decode the following. Print out the result. to_decode = [¹-¹, 1. Create an encoder dict that hold the roman letters and their Morse codes. We will use this to translate roman letters to Morse code. Should the Morse codes be the keys or should the roman letters be the keys? Morse code was created to transmit messages over the telegraph. It uses dots and dashes to signal letters. Below are two lists. letters lists the 26 letters of the alphabet and some punctuation marks. morse lists the Morse code for each letter. Take this example: test = ['-..', .'] The first code is .. (dash-dot-dash-dot). That is the third entry in the morse list, which is 'c'. The second is...' which is '1'. Continuing this way, test translates to: 'close gate!. > letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', morse = ['.-', 1. Create a decoder dict that holds the roman letters and their Morse codes. We will use this to translate Morse code to roman letters. Should the Morse codes be the keys or should the roman letters be the keys? 2. Use your dict to decode the following. Print out the result. to_decode = [¹-¹, 1. Create an encoder dict that hold the roman letters and their Morse codes. We will use this to translate roman letters to Morse code. Should the Morse codes be the keys or should the roman letters be the keys?
Expert Answer:
Answer rating: 100% (QA)
For the first exercise to translate Morse code to Roman letters it would be practical to use the Morse code as the keys and the Roman letters as the v... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
An object is thrown at time t = 0. The height of the object is shown in the graph. n Time (s) Ad 12 10 8 6 What is the speed of the object at t = 4?
-
The formula can be used to find the number of years t required for an investment P to grow to a value A when compounded continuously at an annual rate r. (a) How long will it take to increase an...
-
Now consider the junk bond financing alternative. a. Construct a pro forma income statements for 1993 for the two financing alternatives. b. What are the times-interest-earned, fixed charge coverage,...
-
You accepted a new job with starting salary of $52,000 per year. The salary is expected to increase 4% each year. Now it is time to make a retirement plan for the next 39 years you expect to work....
-
You're the manager of global opportunities for a U.S. manufacturer, who is considering expanding sales into Asia. Your market research has identified the market potential in Malaysia, Philippines,...
-
The following account appeared in the ledger of Marine Drive Stores: Explain each entry in this account and also state where the double entry for each entry will be found. Central Wholesalers account...
-
Total Placement Service (TPS) issued \(\$ 600,000\) of \(20-\) year, \(7 \%\) bonds payable at maturity (par) value on February 1, 2008. The bonds pay interest each January 31 and July 31, and the...
-
Gothic Architecture is a new chain of clothing stores specializing in the color black. Gothic issues 1,000 shares of its $1 par value common stock at $30 per share. Record the issuance of the stock....
-
The Supply Chain Game is an online supply network simulator. Students compete against each other in two assignments lasting a week each. To meet different demand patterns in five regions, student...
-
Holly wants to explore the difference between buying and leasing a vehicle, both over 5 years with monthly payments. The car that she has an interest in has a value of $27000, and is located in...
-
A, B & C were equal partners with goodwill Rs 1,20,000 in the balance sheet and they agreed to take D as an equal partner on the term that he should bring Rs 1,60,000 as his capital and goodwill, his...
-
1 ) Monson Company is considering three investment opportunities with cash flows as described below: Project A: Cash investment now $ 1 5 , 0 0 0 Cash inflow at the end of 5 years $ 2 1 , 0 0 0...
-
The problem requires providing Journal Entries, posting the T Accounts (G/L), preparing a Trial Balance, providing Adjusting Journal Entries, again posting to the T Accounts (G/L), an Adjusted Trial...
-
Write a java program to print below pattern? *- - - - *- - - - * - - - - *
-
Please help with this with at least one thousand and five hundred words. Make a career action plan as an accountant that will help you strategize your professional and personal growth. Start with...
-
What would happen to the net income over the two-year life of the project from the perspective of Vandelay Industries if they leased the equipment for $85,000 a year making those lease payments at...
-
CS Describe the error |2x-1|=-9 i The Student Solution : Made in the folution: or x = 5 X = -4
-
In a paragraph of approximately 150-200 words, analyze a film or TV/Streaming Show poster of your choosing by focusing on the ways in which representations in the poster are gendered. Include an...
-
Clifford Johnson has a limited partnership investment and a rental condominium. Clifford actively manages the rental condominium. During 2012, his share of the loss from the limited partnership was...
-
Please answer the following questions regarding the taxability of Social Security: a. A 68-year-old taxpayer has $20,000 in Social Security income and $100,000 in tax-free municipal bond income. Does...
-
While preparing Massie Miller's 2012 Schedule A, you review the following list of possible charitable deductions provided by Massie: Cash contribution to a family whose house burned...
-
A homogeneous disk of weight \(W\) and radius \(r\) is supported by two identical cylindrical steel shafts of length \(l\), as shown in Figure 2.70. From solid mechanics, for each shaft the relation...
-
A simple pendulum of initial length \(l_{0}\) and initial angle \(\theta_{0}\) is released from rest. If the length is a function of time according to \(l=l_{0}+\varepsilon t\), find the position...
-
When a manned craft is sent into space it is necessary to know the mass properties of the system, including the moment of inertia of astronauts on the flight, in order to accurately calculate its...
Study smarter with the SolutionInn App