Step 1: Start
Step2: Input the letters
Step3: Determine if the input is colors of blue, red, green, yellow and unknown color
If (Input = B, then
Display “Blue”
Else if (input = R, then
Display “Red”
Else if (input = G, then
Display “Green”
Else if (input = Y, then
Display “Yellow”
Else Unknown Color
Step4: End
Start
Input a Year-entry
number
N=B Blue A
N Y
N=R A
Red
N Y
N=G Green A
N Y
N=Y A
Yellow
Unknown Color A
End