Write a program that inputs a string and output a series of ICAO words that would be used to spell it out. For example: Enter string: Program Test Phonetic version is: Papa Romeo Oscar Golf Romeo Alpha Mike Tango Echo Sierra Tango.
1. Write a program that inputs a string and output a series of ICAO words that
would be used to spell it out. For example:
Enter string: Program Test
Phonetic version is: Papa Romeo Oscar Golf Romeo Alpha Mike Tango
Echo Sierra Tango.
Note that there is a space in the string being translated and letters can be
entered either upper or lower case. Any characters other than alphabet or the
space should be ignored.
2. You should create a function called BuildCodeArray to build an array of
strings of the ICAO words.
3. You should create a second function called TranslateString that takes a string
and translates it into the ICAO spelling.
4. After printing the ICAO words the application should ask the user if they want
to translate another string and continue looping until the user indicates they do
not want to translate another string.
Be sure to use proper formatting and appropriate comments in your code.
Provide appropriate prompts to the user. The output should be clearly labeled
and neatly.
#the language for this code is python
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images