80 likes | 244 Views
Constants, Variables and Data Types. Mr Henry . Starter:. X=6, Y =7, A= 10 X+Y= A-Y= Y+E=12 What is E?. Variables. What is a variable? Research and describe to a partner. A variable is something which can change! (It varies!!). Paired Work!.
E N D
Constants, Variables and Data Types Mr Henry
Starter: X=6, Y=7, A= 10 X+Y= A-Y= Y+E=12 What is E?
Variables What is a variable? Research and describe to a partner. A variable is something which can change! (It varies!!)
Paired Work! Describe how you think a variable could be used in a computer program to a partner.
A Constant is: A constant is a named item or symbol that does not change. Example: You could define Pi in a program is 3.142 and then this can be used in all subsequent equations.
Task Can you think of other constants you may need a program (you may describe the constants for a specific program) Note: a constant doesn’t have to be a number.
Data types are: A data type defines the range of allowed values that a variable or constant holds Can you list all data types you can think of?
Independent Work Create a table to remind you of all the different data types (state the data type, what it is and then an example) The types you need to identify are: Integer, Real, Boolean, String, character. Then research what the purpose of different data types? Good website to help