Question: GAssignment purpose: programmer defined functions, call by reference and call by value, i / o in C + + , loop, data types string, int,

GAssignment purpose: programmer defined functions, call by reference and call by value, i/o in C++, loop, data types
string, int, and bool, struct declaration, dot operator
You will write a program that will play a letter guessing game.
The letter to guess will be read from an-input file, all the letters in the input file will be lowercase
You DO NOT need to change the letter to lowercase
Get one guess at a time and provide feedback to the user, see the sample output below
Interact with the user by getting the first name
Ask the user if they want to play before getting started
If the user enters any character other than a lowercase letter, it will be processed accordingly, YOU DO NOT
NEED TO MAKE SURE THE USER ENERS A LOWERCASE LETTER, see the sample output below
Display the solution letter 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)
Use the struct below to store the data for each round of letterGame:
struct letterGuess
{
char solution;
char currentGuess;
int maxGuesses;
bool guessTooLow;
bool guessTooHigh;
};
Assignment purpose: programmer defined functions, call by reference and call by value, io in C++, loop, data types
string, int, and bool, struct declaration, dot operator
You will write a program that will play a letter guessing game.
The letter to guess will be read from an input file, all the letters in the input file will be lowercase
You DO NOT need to change the letter to lowercase
Get one guess at a time and provide feedback to the user, see the sample output below
Interact with the user by getting the first name
Ask the user if they want to play before getting started
If the user enters any character other than a lowercase letter, it will be processed accordingly, YOU DO NOT
NEED TO MAKE SURE THE USER ENERS A LOWERCASE LETTER, see the sample output below
Display the solution letter 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)
Use the struct below to store the data for each round of letterGame:
struct letterGuess
{
char solution;
char currentGuess;
int maxGuesses;
bool guessTooLow;
bool guessT
Assignment purpose: programmer defined functions, call by reference and call by value, io in C++, loop, data types
string, int, and bool, struct declaration, dot operator
You will write a program that will play a letter guessing game.
The letter to guess will be read from an input file, all the letters in the input file will be lowercase
You DO NOT need to change the letter to lowercase
Get one guess at a time and provide feedback to the user, see the sample output below
Interact with the user by getting the first name
Ask the user if they want to play before getting started
If the user enters any character other than a lowercase letter, it will be processed accordingly, YOU DO NOT
NEED TO MAKE SURE THE USER ENERS A LOWERCASE LETTER, see the sample output below
Display the solution letter 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 )
Use the struct below to store the data for each round of letterGame:
struct letterGuess
{
char solution;
char currentGuess;
int maxGuesses;
bool guessTooLow;
bool guessTooHigh;
};
DD
GAssignment purpose: programmer defined

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 Programming Questions!