What is Programming
- Programming is a set of instructions for the computer to do
- There are many languages such as, Java, C++, Processing, etc.
- AP CSP is language neutral
- Writing code is very specific; explicit
- Low Level programming language is machine oriented
- Specific to the processor (assembly language)
- High level languages easier to understand by and closer to spoken language
- APCSP uses Pseudocode to represent code
- Only describes ideas common across different languages
ABSTRACTION
- Process of simplifying concept in order to make the task easier and simpler
- reducing complexity and allowing for efficient design
- displaying essential info and hiding detail
- Variables are abstractions
- RANDOM(a,b) is an abstraction (a function)
IN JAVA/PROCESSING
- random(1,5);
- type casting can be used to make it an integer
- 7/2=3
PSEUDOCODE/AP