Question: Please program this in c++ The game starts by asking the user about the level of difficulty (1-3) and based on the difficulty level it
The game starts by asking the user about the level of difficulty (1-3) and based on the difficulty level it would choose a random word from the array of words. The program should show an error if the difficulty level is not a valid number by showing "Please enter a valid difficulty level!". The users have 4 chances to guess any given word.If they win they will be shown You have lost -" and if they lose they will be shown" You have WON -". After each round the user should be asked if they are interested play again or not. The words list need to be stored in a single global array. The index of the words is associate with its difficulty.In other words, a word with index of 5 in the array is more difficult than a word with index of 1. Words List Difficulty 1 fun car test book class Difficulty 2 mouse notepad keyboard computer blackboarcd Difficulty 3 Kayak Oxygen Awkward Memento Bagpipes Notes: . Minimum of one function should be used to create this program (not including main) . Use the given dictionary of words. . Please submit a copy of the source code as well as the output of the programs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
