{"id":1424,"date":"2015-07-01T00:01:04","date_gmt":"2015-07-01T07:01:04","guid":{"rendered":"http:\/\/c-for-dummies.com\/blog\/?p=1424"},"modified":"2015-07-09T07:55:55","modified_gmt":"2015-07-09T14:55:55","slug":"spelling-alphabet","status":"publish","type":"post","link":"https:\/\/c-for-dummies.com\/blog\/?p=1424","title":{"rendered":"Spelling Alphabet"},"content":{"rendered":"<p>The spelling alphabet is a tool used by the military, police, and other professionals. It helps them to sound cool when they spell names. You&#8217;ve probably attempted to spell that way yourself, even if you didn&#8217;t know any official spelling alphabet. Lots of people say, &#8220;N as in Nancy.&#8221; That&#8217;s how the spelling alphabet works.<br \/>\n<!--more--><br \/>\nBy the way, N is <em>November<\/em>, not Nancy.<\/p>\n<p>Your task this month is to concoct code that accepts a single word as input and then uses the NATO phonetic alphabet to spell out that word. For example:<\/p>\n<pre><code>Type a word: program\r\nPapa Romeo Oscar Golf Romeo Alfa Mike<\/code><\/pre>\n<p>The NATO phonetic alphabet spelling of the word <em>program<\/em> is shown above. The full alphabet consists of the following strings:<\/p>\n<pre><code>        \"Alfa\", \"Bravo\", \"Charlie\", \"Delta\", \"Echo\",\r\n        \"Foxtrot\", \"Golf\", \"Hotel\", \"India\", \"Juliett\",\r\n        \"Kilo\", \"Lima\", \"Mike\", \"November\", \"Oscar\",\r\n        \"Papa\", \"Quebec\", \"Romeo\", \"Sierra\", \"Tango\",\r\n        \"Uniform\", \"Victor\", \"Whiskey\", \"Xray\",\r\n        \"Yankee\", \"Zulu\"<\/code><\/pre>\n<p>That&#8217;s all the help I&#8217;m going to give you. Even though I formatted that text as it should go into an array, I&#8217;m not going to give you the array format. Nope, it&#8217;s all up to you this time.<\/p>\n<p>Multiple solutions exist for this problem, but you need to craft only one. As long as a single word is accepted as input, processed, and the spelling words are output properly, you pass.<\/p>\n<p>Please try this Exercise on your own before you sneak a peek and <a href=\"http:\/\/c-for-dummies.com\/blog\/?p=1438\">view my solution<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Display the spelling alphabet for any word. <a href=\"https:\/\/c-for-dummies.com\/blog\/?p=1424\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1424","post","type-post","status-publish","format-standard","hentry","category-exercise"],"_links":{"self":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1424"}],"version-history":[{"count":4,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1424\/revisions"}],"predecessor-version":[{"id":1457,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1424\/revisions\/1457"}],"wp:attachment":[{"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c-for-dummies.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}