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....
-
Which rules of professional conduct should Vick consider in deciding on a course of action? Explain. What are Vick's ethical obligations in this matter?
-
What language functions are most probably intended to be served by each of the following passages? The only thing necessary for the triumph of evil is for good men to do nothing.
-
The Apollo Company is a catalogue-based retailer. The following describes Apollos operations in its first two years of business: Required 1. Prepare an income statement for each year assuming that...
-
The following account balances, before any closing entries, appear on the books of Spring Company as of December 31, 2012: Retained Earnings (balance at January 1, 2012) . . . . . . . . . . . . . . ....
-
Cash Flow from Operating Activities Using the information for the Seville Corporation, calculate the cash flow from operating activities. Accounts payable increase $4,500 Accounts receivable increase...
-
Computer Project Exercises In developing the exercises, trade-offs had to be made to enrich the learning experience. One of the major problems students initially encounter is data and detail...
-
Compute (AB)^k, when k EN and matrices A and B are: A = = 1 1 1 1 2 2 3 4 -1 7 B= 0 0 -2 -2 4 8 -5-2
-
Label and show calculations for this problem? Quarter First Second Third Fourth Direct materials Direct labor Manufacturing overhead Total manufacturing costs (a) $200,000 $100,000 $ 50,000 $150,000...
-
A company produces pool pumps. Overhead costs have been identified as follows: Activity Pool Cost Material handling Machine maintenance Setups Cost Driver Number of moves Number of machine hours...
-
You deposit $150,000 today in an account that pays an annual rate of 10 percent interest. You plan to withdraw $100,000 from this account at the end of the 3rd year. How much will be left in your...
-
Examine the design and construction challenges of deep foundations in complex geotechnical environments, such as soft clays, expansive soils, or karst topography. How do engineers address the risks...
-
Identify and define five common types of fraud. Explain how you might detect each type of fraud. Provide the steps you would take to recover. Explain what a consumer might do to avoid each type of...
-
Reflect Think about how your written communication changes based on context. For example, in what ways are your work emails different from the messages you post on social media? Consider what you...
-
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...
-
What is allocative efficiency?
-
Describe and explain the concept of diminishing marginal product.
-
Which of the following is true? a. In constant-cost industries, the cost curves of the firm are not affected by changes in the output of the entire industry. b. In an increasing-cost industry, the...
Study smarter with the SolutionInn App