Question: [Use python] The algorithm of your program is suggested as follows: Use the table alpha bavao chalie delta echo foxtrot glof hotel india juliett kilo

[Use python]

The algorithm of your program is suggested as follows:

Use the table

alpha

bavao

chalie

delta

echo

foxtrot

glof

hotel

india

juliett

kilo

lima

mike

november

oscar

papa

quebec

romeo

sierra

tango

uniform

victor

whiskey

x-ray

yankee

zulu

0zero

1wun

2too

3thuh-ree

4fo-wer

5fi-viv

6six

7se-ven

8ate

9niner

The data in the table of word should then be stored into a data structure dictionary using the first character of each word as the key and the whole word as the content.

The program then use a while loop to ask the user to type in a short message (words containing English characters or digits, each word is separated by a space). A short message is terminated with a return press.

The typed in short message is then translated into the walkie talkie spelling words and print out onto the screen.

The while loop keeps on asking the users to input the next short message and then handling it until the input short message is equivalent to roger out.

You may decide whether the last message roger out to be translated and printed onto the screen or not.

To make it simple, the uppercase and lowercase characters at the user input can be treated as identical.

The output should be like this:

[Use python] The algorithm of your program is suggested as follows: Use

Program for spelling out an English word via Walkie Talkie. The program accepts only English character and digits ! Input a word for spelling via walkie talkie: Ambulance A93 arrived alpha mike bavao uniform lima alpha november chalie echo alpha 9niner 3thuh-ree alpha romeo romeo india victor echo delta Input a word for spelling via walkie talkie: Time 2315 tango india mike echo 2too 3thuh-ree lwun 5fi-viv Input a word for spelling via walkie talkie: roger out romeo oscar glof echo romeo oscar uniform tango

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!