0% found this document useful (0 votes)
180 views1 page

Guess Game Flowchart Drawio by Luke Gilligan

The document describes a random number guessing game program that allows a user to guess a randomly generated number within a specified range. The program tracks the number of guesses, indicates whether guesses are too high or low, and ends when the user correctly guesses the number or runs out of allowed guesses. It also prompts the user to play again at the end.

Uploaded by

rokan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
180 views1 page

Guess Game Flowchart Drawio by Luke Gilligan

The document describes a random number guessing game program that allows a user to guess a randomly generated number within a specified range. The program tracks the number of guesses, indicates whether guesses are too high or low, and ends when the user correctly guesses the number or runs out of allowed guesses. It also prompts the user to play again at the end.

Uploaded by

rokan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

RANDOM NUMBER GUESSING GAME

Start Program

Define Input Range Upper Define User Guess # as 0


= vRangeUpper = vUserGuessNo

Define Input Range Lower Prompt User for Guess


= vRangeLower =vUserGuess

Display:
"Please enter a valid number"
Define Random
Number between
vRangeUpper No
AND Is input a valid number?
vRangeLower
= vRandomNo

Yes

Define Number of Guesses


= vGuessesAllowed
vUserGuessNo
= vUserGuessNo + 1

Does
Does Is
No vUserGuessNo No
vUserGuess vUserGuess
=
= < No
vGuessesAllowed
vRandomNo vRandomNo

Yes Yes Yes

Display: Display:
Display: Display:
"Congratulations you "Sorry you have no
"The number is higher "The number is lower
have guessed correctly in guesses left, the correct
Yes than vUserGuess" than vUserGuess"
vUserGuessNo tries" answer was vRandomNo"

Prompt user
to play again
= vPlayAgain

No No
vPlayAgain vPlayAgain Display:
= = "Please enter a
"Y" "N" valid selection"

Yes

End Program

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy