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
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
Get step-by-step solutions from verified subject matter experts
