Question
Write a program using FLOWGORITHM and psuedocode that simulates a 2 player guessing game. Ask the first player to enter the secret number and how
Write a program using FLOWGORITHM and psuedocode that simulates a 2 player guessing game. Ask the first player to enter the secret number and how many tries the other player should get to guess it. The second player should then be allowed to guess. After each guess tell the second player if they guessed too low, too high or correctly. If the player guesses correctly the game should then be over, if they were incorrect then should be able to continue guessing until they run out of chances. If they run out of chances tell them theyve failed, game over. Youll need an indefinite loop for this problem because you need to stop the loop earl y if the player guesses correctly . Your loop condition should be two Boolean expressions joined together with a Boolean operator ( &&, || ). Test your program against the following values. If there is an error, go back through the steps to locate the probl em.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started