Question
For this program you will have to understand how to parse a string, to process each character in the string. HINT: use function at(int n)
For this program you will have to understand how to parse a string, to process each character in the string.
HINT: use function at(int n)
Write a function with the following prototype
string toICAO(char );
Take your assignment ICAO_Codes.cpp and turn that program into a function, and use it to convert a string input by the user into the series of words that would be used to spell it out phonetically. For example:
Enter string: Vibha Phonetic version is: Victor India Bravo Hotel Alpha
Be sure to use proper formatting and appropriate comments in your code. Provide appropriate prompts to the user. The output should be labeled clearly and formatted neatly.
For ease of reference, the ICAO alphabet is repeated here:
A | Alpha |
B | Bravo |
C | Charlie |
D | Delta |
E | Echo |
F | Foxtrot |
G | Golf |
H | Hotel |
I | India |
J | Juliet |
K | Kilo |
L | Lima |
M | Mike |
N | November |
O | Oscar |
P | Papa |
Q | Quebec |
R | Romeo |
S | Sierra |
T | Tango |
U | Uniform |
V | Victor |
W | Whiskey |
X | X-ray |
Y | Yankee |
Z | Zulu |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started