Computer science unit 2

Somto Ibeme
Mind Map by Somto Ibeme, updated more than 1 year ago
36
2
0

Description

Includes: variables (constants,casting, data types) math operators pseudocode

Resource summary

Computer science unit 2
1 VARIABLES
1.1 points to are of memory that stores data, can be changed while program executing
1.2 constant - value that cannot be altered by the program during execution
1.2.1 pi = 3.14
1.3 casting
1.3.1 changing from one variabe type to another
1.3.1.1 int(input("Enter the price"))
2 DATA TYPES
2.1 string
2.1.1 sequence of characters, can be numbers, letters, symbols, must be in speech marks
2.1.2 input("Enter your name")
2.1.3 python = str()
2.2 integer
2.2.1 a whole number, positive or negative
2.2.2 45, 324 ...
2.2.3 python = int()
2.3 boolean
2.3.1 two possible values, TRUE or FALSE
2.3.2 35 > = 5 * 7
2.3.2.1 TRUE
2.3.3 2 ^3 = 10
2.3.3.1 FALSE
2.4 float
2.4.1 a decimal number, real value
2.4.2 3.14, 5.01 ...
2.4.3 python = float()
2.5 character
2.5.1 A single alphabetic or numeric character
2.5.2 ‘K’, ‘4’, ‘@’, ‘%’
3 MATH OPERATORS
3.1 add +
3.2 - minus
3.3 * mulitple
3.4 / division
3.5 // displays whole number in divison
3.5.1 5 // 2 = 2
3.6 % displays remainder in divsion
3.6.1 5 % 2 = 1
3.7 ^ power to (indices)
3.8 == equal to != not equal to < more than > less than
3.9 <= less than/equal to >= more than/equal to
4 PSEUDOCODE
4.1 algorithm
4.1.1 series of steps to solve problem/carry out task
4.2 structured English for describing algorithms
4.3 if total == 19 : print ("You won")
Show full summary Hide full summary

Similar

OCR GCSE History-Paper Two: The Liberal Reforms 1906-14 Poverty to Welfare State NEW FOR 2015!!!
I Turner
Latin Literature Exam Techniques
mouldybiscuit
Computing Hardware - CPU and Memory
ollietablet123
Geography Quiz - Tectonics
oscartaylor
4. Civil War
ShreyaDas
How does Virgil build up tension in the death of Nisus?
mouldybiscuit
Pathos in Battle
mouldybiscuit
Maths GCSE - What to revise!
livvy_hurrell
GCSE Biology B2 (OCR)
Usman Rauf
Biology- Genes and Variation
Laura Perry
Biology Revision - Y10 Mock
Tom Mitchell