Question
Do the following well, please follow all directions, send correct codes and make sure you send the output as well so i know it runs,
Do the following well, please follow all directions, send correct codes and make sure you send the output as well so i know it runs, please follow everything well and complete this task:
Work through the tasks sequentially (implement and test).
Remember that the function prototypes and global-variables must be exactly as specified in this project specification. Lastly, do NOT use EOF(End of File),
Test your code before sending.
Task A: Dictionary using Arrays
PLEASE LOOK AT EXAMPLES WELL, FOLLOW ALL DIRECTIONS WELL, AND SEND GOOD AND CORRECT CODE
Make sure your program produces the correct output by testing the function and global-variables using main() function.
Please do this all well
It is important to make sure that Only the single .cpp file gets submitted so Remove or comment out the main function from your code before submitting it Otherwise, the autograder will fail. As stated in examples earlier, the text file will be inputted by the computer through the functions you add and as it says after it will call readWords to modify the variables and print the result. Make sure to follow all directions well and the part listed in the @ param part specifically
A regular dictionary contains the words and the definitions. In addition to the words and the definitions, we will also store the part-of-speech (pos). The words, definitions and pos are going to be stored in Arrays. Use these global-variables in your code outside main() function: const int g_MAX_WORDS =1000; int g_word_count =0; string g_words[g_MAX_WORDS ]; string g_definitions[g_MAX_WORDS ]; string g_pos[g_MAX_WORDS ]; Create a C++ file and add the following function: Here's an example text file: WORD POS : DEFINITION Grumpy Adjective : bad-tempered and irritable Professor Noun : a teacher of the highest rank in a college or unive: Does Verb : perform (an action, often of unspecified nature) Nothing Adverb : not at all Example: Calling readWords () on the above text file will modify the global variables like this: g_MAX_WORDS : 1000 g_word_count: 5 g_words: [ "WORD", "Grumpy", "Professor", "Does", "Nothing"] g_pos: ["PoS", "Adjective", "Noun", "Verb", "Adverb"] g_definitions : [ "DEFINITION", "bad-tempered and irritable", "a teacher of the highest rank in a college or university", "perform (an action, often of unspecified nature)", "not at all" ]Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started