Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have this LISP assignment I need assistance on Write a program using Common Lisp that converts a phrase in English to NATO code, and

I have this LISP assignment I need assistance onimage text in transcribed

Write a program using Common Lisp that converts a phrase in English to NATO code, and converts a phrase in NATO code to English. The NATO phonetic alphabet is useful to pre- vent spelling mistakes or miscommunication, especially when people from different countries with different accents and pronunciations work together. The NATO alphabet became effec- tive in 1956 and, a few years later, tured into the established universal phonetic alphabet for all military, civilian and amateur radio communications. It assigns a word to each letter so that a letter's name begins with the letter itself. https://www.nato.int/cps/enatohgews150391.ht The table below shows the NATO ode for each of the 26 letters in the English alphabet. A Alfa Bravo C Charlie D Delta E Echo F Foxtrot G Golf H otel India Julict K Kilo L Lima M Mike N November O Osar P Papa Q Queboc R Romco S Sicrra T Tago U Uniform V Vietor W Whiskey X Xray Z Zulu Your program must include two functions called: 1) conve, which takcs as input a phrasc as a list in English and displays its NATO code as a string not a list. 2) conn, which takes as input a phrase as a list in NATO code and displays plain text in English as a string. . Your program ust run with the function coze and the function con. . Your input must be read and processed recursively as a list. . Each word in the phrase must be a sublist of the list. For example to convert from English to NATO code the phrase programming languages, the input must be the list ((P ROGRAMMING) (LANGUAGES)) The output should be PapaRomeoOscarGolfRomeo AlfaMikeMikeIndiaNovemberGolf LimaAlfaNovem- berGolfUniformAlfaGolfEchoSierra To convert NATO code to English the input must be the list ((Papa Romeo Oscar Golf Romeo Alfa Mike Mike India November Golf) (Lima Alfa November Golf Uniform Alfa Golf Echo Sierra)) Write a program using Common Lisp that converts a phrase in English to NATO code, and converts a phrase in NATO code to English. The NATO phonetic alphabet is useful to pre- vent spelling mistakes or miscommunication, especially when people from different countries with different accents and pronunciations work together. The NATO alphabet became effec- tive in 1956 and, a few years later, tured into the established universal phonetic alphabet for all military, civilian and amateur radio communications. It assigns a word to each letter so that a letter's name begins with the letter itself. https://www.nato.int/cps/enatohgews150391.ht The table below shows the NATO ode for each of the 26 letters in the English alphabet. A Alfa Bravo C Charlie D Delta E Echo F Foxtrot G Golf H otel India Julict K Kilo L Lima M Mike N November O Osar P Papa Q Queboc R Romco S Sicrra T Tago U Uniform V Vietor W Whiskey X Xray Z Zulu Your program must include two functions called: 1) conve, which takcs as input a phrasc as a list in English and displays its NATO code as a string not a list. 2) conn, which takes as input a phrase as a list in NATO code and displays plain text in English as a string. . Your program ust run with the function coze and the function con. . Your input must be read and processed recursively as a list. . Each word in the phrase must be a sublist of the list. For example to convert from English to NATO code the phrase programming languages, the input must be the list ((P ROGRAMMING) (LANGUAGES)) The output should be PapaRomeoOscarGolfRomeo AlfaMikeMikeIndiaNovemberGolf LimaAlfaNovem- berGolfUniformAlfaGolfEchoSierra To convert NATO code to English the input must be the list ((Papa Romeo Oscar Golf Romeo Alfa Mike Mike India November Golf) (Lima Alfa November Golf Uniform Alfa Golf Echo Sierra))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions