You are on page 1of 2

4 PICS 1 WORD

Resurreccion, Christen Faith C. BSIE-1 February 19, 2019

FLOWCHART:
START

result=0, spaces=0,
correctword=0, decision=0,
level=0

spaces= length of the


correctword

Read pic1, pic2, pic3, pic4, letters, spaces

Read the user’s assembled letters

result=assembled letters

Result != correctword
T

Print result

Do you want to continue? Y or N

decision==”Y”|| decision==”y” F Print “Thank you for playing!”


END

Level ++
4 PICS 1 WORD
ALGORITHM:

Step1: Initialize the value of result, correctword, decision, spaces and level into 0.

Step2: Spaces is equal to the length of the correctword.

Step3: Read in the values of pic1, pic2, pic3, pic4, letters and spaces.

Step4: Read the user’s assembled letters.

Step5: Result is equal to the user’s assembled letters.

Step6: If result is not equal to the correctword then go back to step 3 if not then proceed to step 7.

Step7: Print result and ask the user if he/she still want to continue.
Step8: If decision is equal to y/Y then increment level if not then display “Thank you for playing” and
terminate.

LAYOUT:

TITLE

LEVEL #

PIC 1 PIC 2

PIC 3 PIC 4

L E T T E R

You might also like