Starter -> ‘Do now’ ‘Programming’ retrieval task
Task 1 – Programming Theory
Answer the following questions:
What is a variable and why do we use them in programs? A value which stores data.
What is the difference between selection and iteration? Selection is where commands are executed if a
condition is met, but an iteration is where commands are executed for a specific amount of lopps
Write down an example of an IF statement in pseudocode.
If age < 18 then
[Link](“You are an adult!”)
End If
What is the difference between integer and string data types? Integer stores whole numbers and strings can
store numbers,characters and symbols
What does it mean when we say a program should have validation?
It should validate all responses giving the correct response without any errors.
Part 2 – Programming Task (New project: Maths Task)
Write a [Link] program that:
Asks the user to enter two numbers.
Calculates and outputs the sum, difference, product, and quotient of the numbers.
Displays the results clearly, e.g.:
o Enter first number: 8
o Enter second number: 4
o The sum is: 12
o The difference is: 4
o The product is: 32
o The quotient is: 2