Convert Algorithms (Edexcel GCSE Computer Science)
Revision Note
Author
Robert HamptonExpertise
Computer Science Content Creator
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
Exam 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 # ------------------------------------------------------------------------
|
You've read 0 of your 0 free revision notes
Get unlimited access
to absolutely everything:
- Downloadable PDFs
- Unlimited Revision Notes
- Topic Questions
- Past Papers
- Model Answers
- Videos (Maths and Science)
Did this page help you?