Revision Evidence
Revision Evidence
CONSTANT Pi ← 3.141592
2) Write a simple program (in Pseudocode) that uses IF, THEN, ELSE.
START
INPUT Age
If Age >= 18 THEN
OUTPUT “You are able to vote.”
ELSE
OUTPUT “You are unable to vote.”
ENDIF
END
3) In Python, write a simple program that asks the user for a word and converts all the characters
to uppercase. The result is outputted.
4) Ask a user what the capital city of Wales is. If the correct answer is given, then output
“Correct!”. If the answer is wrong then print “try again!”. Generate this as a flowchart.
5) Writing in Pseudocode, how would you declare a PROCEDURE with no parameters?
PROCEDURE Greeting
OUTPUT “Hello, world!”
END PROCEDURE