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
IMPORTANT: THE FOLLOWING EXAMPLE SHOWN IS RAN ON GRADESCOPE, YOU CAN SHOW THE MAIN FUNCTION BUT IT MUST BE COMMENTED OUT AS WHEN RAN ON GRADESCOPE IT HAS ITS OWN TEXT FILE AS THE INPUT WHICH ITLL CALL FOR READWORDS
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.
MAKE SURE THAT THE OUTPUT WOULD COME BASED ON GRADESCOPE HAVING ANY TYPE OF TEXT FILE READY, YOU CAN MAKE THE MAIN FUNCTION FOR YOU AND I TO TEST IT BUT THEN IT SHOULD BE COMMENTED OUT.
Make sure to have the getline, the loops and everything and that the text file does not get implemented on the code, because gradescope has its own textfile that it uses the void from the code we make to get it.
Something like that that if it appears as the output on replit would work but then the main would be commented out for the gradescope, do not use it exactly like that but as an example of what the output could look like when you run it before gradescope uses its own file to run it.
Please leave a comment if you dont understand something
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" ] banana []: a long curved fruit with a yellow skin orange []: a round juicy citrus fruit with a tough bright reddish-ye llow rind [] : Enter a word to look up: apple Sorry, that word was not foundStep 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