Question: In C++ Write a program that will use an array of strings to hold 5 words entered by the user. Use a const int NUM_WORDS

In C++ In C++ Write a program that will use an array of strings

Write a program that will use an array of strings to hold 5 words entered by the user. Use a const int NUM_WORDS to hold the size of the array. The user should be prompted to enter 5 words (using the const, not "5"). An integer should hold a random number in the range 0 NUM_WORDS (up to, but not including NUM_WORDS). That integer will be the cell number of the "lucky" word. Then, the user should be prompted to guess which word is the lucky word. If the user's guess matches up with the word in the cell number indicated by the random number, a congradulatory message should be displayed. If the user's guess is not the lucky word, another message should appear, which includes what the lucky word was

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!