Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions

Question

Explain the importance of Human Resource Management

Answered: 1 week ago

Question

LO2 Compare three types of individual incentives.

Answered: 1 week ago