Zusammenfassung der Ressource
Programming
- Control flow
- Selection
- IF THEN ELSE
- Iteration
- Loops
- WHILE or FOR
- Sequencing
- The order through an algorithm
- Algorithms
- Solving problems 1 step at a time
- Processors can only process 1 instruction at a time
- Mainly expressed as a flow chart
- Make sure you know the symbols
- pseudocode
- Used for planning algorithms
- Should allow a programmer to write it in any language
- Key words written in capital letters (eg INPUT, IF, WHILE)
- Data type
- Variable or constant
- Constant stays the same eg Pi
- Variable changes during the program eg score in a game
- Operations are mathematical symbols eg <>+-
- Arrays are lists of the same data types
- Integers and real numbers
- Integer is a whole number
- Real (sometimes called float) can have decimal places
- Translation
- Interpreter
- Executes the source code directly
- Used when creating a program
- Would be used on open source software
- Compiler
- Creates an executable file to run the program
- Once it is complied it doesn't need the original source code
- Would be used for proprietary software
- Assembler
- Turns assembly language into machine code
- Only can be used in low level programming
- Testing
- Logical error
- Human error with the construction of the algorithm
- Run time error
- An error in the program ed stuck in loop
- Syntax error
- Not a correct command for the coding language being used
- High level / low level programming
- High level had to be translated
- Has to be translated
- Uses language that is either to understand by humans
- eg Python, BASIC, Javascript
- Low level is understood by the processor
- Assembly language
- Codes specific to a type of processor
- eg INP, LDA, OUT
- Written as each instruction would be processed
- Machine code
- Binary codes for each instruction and register location