DIT - Introduction to Programming: Basic Notes
1. What is Programming?
Programming is the process of writing instructions (code) that tell a computer what to do.
2. Program
A program is a set of instructions executed by a computer to perform a task.
3. Programming Languages
Examples: Machine Language, Assembly Language, High-Level Languages (C, C++, Python,
Java).
4. Algorithm
A step-by-step solution to solve a problem.
5. Flowchart
A graphical representation of an algorithm using symbols.
6. Variables
Named memory locations used to store data.
7. Data Types
Integer, Float, Character, String, Boolean.
8. Operators
Arithmetic, Relational, Logical, Assignment.
9. Input and Output
Input: data entered by user. Output: result produced by program.
10. Control Structures
Sequence, Selection (if), Iteration (loops).
11. Functions
Reusable blocks of code that perform a specific task.
12. Good Programming Practices
Meaningful names, comments, indentation, testing and debugging.