Friday, 24 January 2014

3.1.1 The Difference between a variable and a constant

What is the difference between a variable and a constant?

In maths and computing, a variable is a symbol, number ore letters that represent a value.
Python variables are like this:

name = “Bob the builder”

A variable is something that needs to change though out the program.
A constant is something that needs to stay the same and can't change. In the c programming language a constant looks like this: 
int const a = 1;

Click here to read more about it.

Thursday, 23 January 2014

3.1.1 Data and Information

What is the difference between data and information?

Data is facts or statistics that are out of context, it means nothing on its own. e.g: 12.6, 1223, 562B
Data turns in to information when it is labeled and put in to context. e.g: lap times = 121.64, 126.91, 125.46
Information can be a words, pictures or sequence of numbers that are in context.
Example of data:









Click this to read more about it.