Convert Algorithms (Edexcel GCSE Computer Science)
Revision Note
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 Tip
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 10 free revision notes
Unlock more, it's free!
Did this page help you?