Question: For this assignment, you will build a flowchart using Flowgorithm based upon the pseudocode found below. This program asks the user to a persons age.
For this assignment, you will build a flowchart using Flowgorithm based upon the pseudocode found below. This program asks the user to a persons age. It then displays a message if the users age is greater than 65 (retirement age). It also allows the user to end the program by entering a specific number, also known as a sentinel value and looping structure.
Start
Declarations (string, integer)
string name
integer age, sentinelValue
sentinelValue = 1
while (sentinelValue != -1)
Output Enter the persons name:
Input name
Output Enter the persons age:
Input age
If (age >= 65)
Output You are of retirement age
Else
Output You are too young to retire
endif
Output Enter any number to continue, or type -1 to exit
Input sentinelValue
endwhile
stop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
