Computer Science Class Notes: Introduction to Programming (Detailed)
1. What is Programming?
- Communicating instructions to a computer to perform tasks.
2. Early Programming History
- 1940s: Machine Language (binary code).
- 1950s: Assembly Language (mnemonics).
- Today: High-Level Languages (Python, Java, C++).
3. Algorithms and Flowcharts
- Algorithm: Step-by-step logical procedure.
- Flowchart: Visual diagram representing steps.
4. Variables and Data Types
- Variable: Symbolic name for a memory location.
- Data Types: Integer, Float, String, Boolean.
5. Control Structures
- If Statements: Decision-making.
- Loops: Repeat actions (for, while).
6. Pseudocode Example
- Start
- Input A, B
- If A > B then
Print A
Else
Print B
- End
7. Importance of Programming
- Software development, AI, cybersecurity, web design.