Structured English
Structured English
In addition to flowcharts, programmers invented structured English as a simple way of using words to describe an algorithm. Structured English is very much like plain English. We use it to describe the logic in a program. A programmer can easily translate this into a working program using one of many programming languages. Structured English is a form of pseudocode, which means ‘not quite real code’.
There are a few simple rules for writing structured English:
START and END are used
statements are ordered logically to show execution from top down
logical blocks of code are indented
keywords are written in capital letters
IF, THEN, ELSE and ENDIF are used for conditional statements involving selection
REPEAT, WHILE and UNTIL are used for looping or repetition.
Activity 11: Structured English
Using your flowchart describing an algorithm for making a cup of tea, write a structured English version of your algorithm.
Activity 12: Number Guesser
Go to Google Classroom and click on the link to the Number Guesser worksheet.
You need to complete both activities on the worksheet; which one you choose to do first is up to you (if you are unsure which to begin with, start with the flowchart).