Y10 01 CT1 - Slides
Y10 01 CT1 - Slides
programming
T10-01-CT1 Introduction to programming
Learning objectives
For more detail on this topic, and additional learner activities, refer to
Topic 1.1 of the student book.
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
T10-01-CT1 Introduction to programming
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
T10-01-CT1 Introduction to programming
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
T10-01-CT1 Introduction to programming
Programming languages
In GCSE Computer Science we will learn to use a language called
Python.
It is written using a development environment such as IDLE or
PyCharm.
Python, like many languages, uses a set of special keywords along
with symbols and other punctuation marks. This is known as the
syntax of the language.
This is an example of a line of Python code:
print(“Hello World!”)
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
T10-01-CT1 Introduction to programming
Doing calculations
One of the most common tasks we ask computers to do is to
complete calculations. These are the most common operations:
+ addition
- subtraction
/ division
* multiplication
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
T10-01-CT1 Introduction to programming
BIDMAS
• Brackets
• Indices
• Division
• Multiplication
• Addition
• Subtraction
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
T10-01-CT1 Introduction to programming
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
T10-01-CT1 Introduction to programming
Traditional construction
You only need to know one number: the length of a side.
Let’s call this x
Is that a useful name for it?
sideLength
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
T10-01-CT1 Introduction to programming
If the sideLength = 5
What is the surface area?
sideLength
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
T10-01-CT1 Introduction to programming
sideLength = 5
surfaceArea = sideLength ** 2 * 6
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
T10-01-CT1 Introduction to programming
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.