I'm trying to make a single dimensional array that pulls its contents from a file as well an input string from a user. It needs to take the word, break that word into letters, and correlate each letter with its corresponding array designation. (I hope that made sense.)
As an example, if I input the word "cat" it needs to output "Charlie Alpha Tango". My array has 26 components labeled A-Z. My problem is that whenever I input a word, no matter what it is, I get "Zulu Uniform Lima". I can't make the user input correspond with its correct letter in the array. I've checked around on this site and others and can't find a solution.
Here's my code:
Thank you so much JockX! If I could bake you a pan of cookies and send them to you digitally, I would. I've been trying to solve this for almost a week now. You're amazing!