Mapa mental
Unit 2.2
Contenido del mapa
Unit 2.2
Variables and Constants
- Both are used to store data whilst the program is running
- Variables are able to be changed, a constant's value cannot change
Algorithms
- word = input ("Enter a word")
- count = 0
- while count < 3
- for x = 1 to word.length
- if x.upper = "A" then
- count = count + 1
- endif
- next x
- endwhile
- next x
- endif
- count = count + 1
- if x.upper = "A" then
- for x = 1 to word.length
- while count < 3
- count = 0
- endwhile
- x = x + 1
- print b * x
- while x < = 10
- x = 1
- input b
- x = 1
- while x < = 10
- print b * x
- x = x + 1
- next x
- print("Happy birthday")
- for x = 1 to age
- input age
- for x = 1 to age
- print("Happy birthday")
- open allsessions.txt
- for apprend
- write trainingdata
- close file
- write trainingdata
- for apprend
- where venuedetails = "Bycars Park"
- print trainingdata
- Select Songtitle + Length
- From song
- Where bandname ="Penguin Steak"
- From song
- word = input ("Enter a word")
Data Types
- Integer
- E.g. 1 or 2 or 3
- String
- E.g. Bycars Park
- Boolean
- E.g. True or False
- Real/Float
- E.g. 12.7 or 15.2
- Casting
- Changing how a variable's data type is interpreted
- Integer
2D Array
- Has rows and columns
- First index
- Can hold data for one training session
- Second index
- Can hold data for other training sessions
Database record
- Collection of data for a certain entity
Información
- Descripción
- Mapa Mental sobre Unit 2.2, creado por Connor Ashford2 el 01/02/2019.
- Creado por
- Connor Ashford2
- Visitas
- 0
- Valoración
Más sobre Variables, Constants and Data Types