GCSE Computer Science Theory

Notes for the AQA GCSE Computer Science (4512/1) theory examination Content based on BourneToCode

Tackling Pseudocode/Flowchart Questions

Pseudocode

Tackling the question with pseudocode

# Ask the user for their option

# If the option is not 1

  # Multiply the option by 54

  # Output the result to the console
  
# Else

  # Output the number 678 to the console

# End the if statement

# Ask the user for their option
option <- USERINPUT
# If the option is not 1
IF option != 1 THEN
	# Multiply the option by 54
	result <- option * 54
	# Output the result to the console
	OUTPUT result
# Else
ELSE
	# Output the number 678 to the console
	OUTPUT 678
# End the if statement
ENDIF

Flowcharts

flowchart symbols