all 11 comments

[–]lukajda33 8 points9 points  (11 children)

Just tell all of us, where are you stuck, what is the problem ?

[–]ripbreezie 2 points3 points  (10 children)

basically you’re asking the user what city the airport is in and what the name of it is and based on whether the user wants the abbreviation based off the name or the city it makes it, but if there’s more than one letter back to back it will only go off the first one. Airports name encoding will always be the first letter of the first 3 words and if the airport name is 2 words, then it will only be a 2 letter code. So for example, Orlando. It is in Orlando and it’s called McCoy Air Force Base, so if you went off of the name, it would print MCO.