Question: Write using codes only in C++ Write a C++ program that shows the following menu G[uess]M[aximum] Qluit] If the user select G or g You
Write a C++ program that shows the following menu G[uess]M[aximum] Qluit] If the user select "G or g" You should invoke a user-defined function void Guess () that plays the game of "guess the number". Your program should generate a random integer number between 1 and 100. The function then shows the following o I have a number between 1 and 100 o Can you guess a number? o Enter your first number The player enters the first guessed number. The program should prompt with one of the following o Excellent! You guessed the number. o Would you like to play again ("y or Y") o Too Low. Try again o Too high. Try again o Close -try again If the user select "M or m" You should invoke a user-defined function, float max (float, float, float) pass three numbers to the function and them find the largest number and print the number in main () If the user selects "Q or q" your program should terminate the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
