Convert Algorithms (Edexcel GCSE Computer Science)
Revision Note
Written by: Robert Hampton
Reviewed by: James Woodhouse
How can you convert algorithms?
Having a deep understanding of at least one programming language (program code) and working with high quality algorithms, it is possible to convert between them
In the exam students should be able to convert algorithms from:
Flowcharts to program code
Pseudocode to Program code
Examiner Tips and Tricks
Before working through the examples on this page, make sure you read through the introduction to flowcharts and pseudocode page here
Flowcharts to Program Code
Task
Convert the following flowchart into program code (Python)
Program code |
---|
|
Pseudocode to Program Code
Task
Convert the following Pseudocode into program code (Python)
Pseudocode |
---|
|
Program code |
---|
# ----------------------------------------------------------------------- # Converts temperature between Celsius and Fahrenheit # -----------------------------------------------------------------------
# Initialise variables
# Perform conversion
# Display result # ------------------------------------------------------------------------ # Main program # ------------------------------------------------------------------------
|
Last updated:
You've read 0 of your 5 free revision notes this week
Sign up now. It’s free!
Did this page help you?