Guess Game Flowchart Drawio by Luke Gilligan
Guess Game Flowchart Drawio by Luke Gilligan
Start Program
Display:
"Please enter a valid number"
Define Random
Number between
vRangeUpper No
AND Is input a valid number?
vRangeLower
= vRandomNo
Yes
Does
Does Is
No vUserGuessNo No
vUserGuess vUserGuess
=
= < No
vGuessesAllowed
vRandomNo vRandomNo
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