Year 10c programming fund 1

Year 10c programming fund 1
Key objective -  you will be able to create different types of variables and apply different operations to those variables.

Learning objectives
- Use and identify different data types
- Use and identify constants and variables
- Use assignment statements & arithmetic operators
- Use the constructs Sequence, Selection & Iteration


1 / 15
next
Slide 1: Slide
ComputingUpper Secondary (Key Stage 4)GCSE

This lesson contains 15 slides, with interactive quizzes and text slides.

time-iconLesson duration is: 120 min

Items in this lesson

Year 10c programming fund 1
Key objective -  you will be able to create different types of variables and apply different operations to those variables.

Learning objectives
- Use and identify different data types
- Use and identify constants and variables
- Use assignment statements & arithmetic operators
- Use the constructs Sequence, Selection & Iteration


Slide 1 - Slide

What is a data type?

Slide 2 - Mind map

Complete the table
3.14535
"Geoff"
G
314535
True
String
Real/Float
Char
Boolean
Integer

Slide 3 - Drag question

Complete the Data Types Topic Test on Classroom 

Slide 4 - Slide

What is a variable? and what is a constant?

name = str(input("Enter your name?")
DOB = int(input("What is your Date of birth?")

pi = 3.142
radius = float(input("What is the radius?")
print("The circumference is: " 2 * pi * radius)

Slide 5 - Slide

Add 4 to 5
Print the result
A
Variable
B
Constant

Slide 6 - Quiz

Ask the user to type in a whole number
Add 5 to that number
Print the result
A
variable
B
constant

Slide 7 - Quiz

If 4 is less than 5
Add 5 to 4
Print the result
Otherwise
Print "no"
A
variable
B
constant

Slide 8 - Quiz

Ask the user to type in a whole number
If the number typed in is less than 5
Add 5 to the number typed in
Print the result Otherwise
Print "no"
A
variable
B
constant

Slide 9 - Quiz

Slide 10 - Slide

Slide 11 - Slide

Slide 12 - Slide

Read section 5 Cambridge GO (Operators) 

- Interactive Activity 10a, 10b, 10c, 10d1, 10d2, 10e

- Complete the Operators Topic Test on Google
Classroom you should use Visual Studio Code for the calculations



Slide 13 - Slide

Sequence - The order processes are carried out

Selection - a condition to decide the path through the program and which set of instructions to execute next

Iteration -where a group of instructions are repeated.

Slide 14 - Slide

Generate a random number and store it as a variable ask the user to input a number.

Tell the user if the number is higher or lower than the random number.

Keep guessing until the player guesses the number.

Slide 15 - Slide