Question: Assignment purpose: programmer defined functions, call by reference and call by value, i o in C + + , loop, data types string, int, and
Assignment purpose: programmer defined functions, call by reference and call by value, in loop, data types string, int, and bool, class declaration, file input, data types string, character arrays, passing a class object to functions
You will write a program that will play a word guessing game, similar to "WORDLE"
This program uses many of the features from program and
You should be familiar with program and program before working on this assignment.
The word to guess will be read from an input file, all the words in the input file will be lowercase letter words with all different letters.
You DO NOT need to change the words to lowercase
Get one WORD guess at a time and provide feedback to the user, see the sample output
Ask the user if they want to play before getting started
If the user enters any word other than a lowercase word, it will be processed accordingly, YOU DO NOT NEED TO MAKE SURE THE USER ENERS A LOWERCASE Word, see the sample output below
YOU DO NOEED TO MAKE SURE THE LENGTH OF THE WORD IS letters
Display the solution word at the end of each round of the game
The user should be able to continue to play another round by entering n or N to stop and anything else to continue OR y or Y to continue and anything else to stop, assume the user will enter y or Y OR n or N
The user should enter one word at a time
Correct letters in the right place are presented as capital letters
Correct letters in a different location are presented as lowercase letters
Be sure to update the pre and post conditions om the function prototypes
Be sure to add comments throughout the code
Use the class below to store the data for each round of wordGuess:Use functions to break up the program functions should not be modifiedvoid SetUpRoundwordGuess& currentGame, ifstream& in;void PlayOneRoundwordGuess& currentGame;void GetNextGuesswordGuess& currentGame;bool ProcessGuesswordGuess& currentGame;bool CheckForAnyMatcheswordGuess& currentGame;void DisplaywordGuess& currentGame;void UpdateAlphabetwordGuess& currentGame;void UpdateRowwordGuess& currentGame;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
