You are on page 1of 2

8.6.

3 Worksheet B

1 Look at the pseudocode below and highlight the keywords.


START
score = 0

OUTPUT "Q1: How long does it take for a plastic bottle to decompose,
200 or 450 years?"
question1 = INPUT
IF question1 == 450 OR "450 years" THEN
OUTPUT "Correct"
score = score + 1
OUTPUT score
ELSE
OUTPUT "Incorrect"
OUTPUT score
ENDIF

OUTPUT "Q2: What percentage of drinks cans are made from aluminium?"
question2 = INPUT
IF question2 == 90 THEN
OUTPUT "Correct"
score = score + 1
OUTPUT score
ELSE
OUTPUT "Incorrect"
OUTPUT score
ENDIF
STOP

2 What will this program do? Explain


__________________________________________________________

__________________________________________________________

3 Three users have answered the questions in this program.

User Inputs Outputs Final score

User 1 First question: 450 Correct 1

Second question: 80 Incorrect

User 2 First question: 200


years
Second question:
100

User 3 First question: 450

Second question: 90

3 Explain some differences between pseudocode and python.


__________________________________________________________
__________________________________________________________
__________________________________________________________
__________________________________________________________

4. SILVER Write the python code matching the pseudocode above. You can
write in this python compiler.

Add your code here:

5. GOLD Use draw.io. to create the flowchart to match the pseudocode


above. You can find examples of pseudocode in the class presentation.

Insert your screenshot:

You might also like