Ok so my professor wants me to create a menu driven program that translates english to spanish and vice versa. He gave us two files which were the spanish word file and the english word file which consist of 125 words each. He said the user should be able to type in a word and it would say if the word is in the file or not and display its translation. Also, this is due tonight...i know, i know, the procrastination. But if you would be so kind to help.
Ok so im still confused on how to compare the user input... Say for example the user types the word "dog". How would i check to see if the word "dog" is even in the eng.txt folder and then if it is how would i display the corresponding word from the span.txt folder? This is what i have so far.
Normally you should read both the files at start of main.
If the user chooses english to spanish then you read the english word, for example dog.
If you find the word in the english array you display the corresponding spanish word from the spanish array, otherwise you show a message "not in dictionary"