Question: Write a C program to build a simple dictionary. You are required to read the words and its relevant meaning from a file named inputWords.txt.
Write a C program to build a simple dictionary. You are required to read the words and its relevant meaning from a file named inputWords.txt. As well as, the user should be able also to insert new words into the dictionary with their relevant meaning. As well as, provide the user to search for a specific word or search the dictionary with all words that start with a specific character. Use the attached file as input file. Hint: you may use the following concepts in C: struct, array, switch, functions, loops, string, read/write from/to file Please use the following format for inputs WordNo. Word: meaning Example 36. Pleasure: a happy feeling The program interface should be similar to this Please select an option 1- Read File and build the dictionary 2- Search for a specific word 3- Search for all words that start with a character 4- Insert new word to the dictionary 5- Save the dictionary back to the file 6- Exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
