U4A1AST Algorithm Flowchart
U4A1AST Algorithm Flowchart
Output "Your input is input.length() Output "Your input is not a False True True
False True input < 0? Output "Invalid input. False Key "x" or "X" Output a farewell
not greater than six >6 negative number" Please try again." entered? message to the user.
characters." characters?
input.length()
Output "Your input is not False True
<= 15 AND False
between 5 and 15 False
input.length()
characters"
>= 5?
Store the string in Output "You chose to
Output "Your input is True Parsing error Key "p" or "P" True
the variable "input" restart the program. Set exit = true
not an integer" caught? entered?
False Welcome back!"
Create a do while Call the method Call the method Call the method Call the method Call the method Call the method Call the method "ending" that
Initialize the boolean loop repeating the "stageOne" to "stageTwo" to "stageThree" to "stageFour" to "stageFive" to "stageSix" to execute receives and returns the boolean
Start End
variable "exit" to true program while exit = execute the first stage execute the second execute the third execute the fourth execute the fifth stage the sixth stage of the "exit" to prompt the user to restart
false of the program stage of the program stage of the program stage of the program of the program program or exit the program.
False
False
True