0% found this document useful (0 votes)
243 views2 pages

Compog

The document outlines a step-by-step process for inputting letters that correspond to colors: blue (B), red (R), green (G), yellow (Y), or an unknown color. It includes conditional statements to display the respective color based on the input letter. The process concludes with an 'End' step after determining the color or identifying it as unknown.

Uploaded by

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

Compog

The document outlines a step-by-step process for inputting letters that correspond to colors: blue (B), red (R), green (G), yellow (Y), or an unknown color. It includes conditional statements to display the respective color based on the input letter. The process concludes with an 'End' step after determining the color or identifying it as unknown.

Uploaded by

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

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

You might also like