Definition of Programming and Its Importance in Problem-Solving

3. Characteristics of a Good Program

A good program should be:

1. Correct → Produces accurate results for all valid inputs.

2. Efficient → Uses minimal memory and executes quickly.

3. Readable → Easy for humans to understand (good naming, comments, indentation).

4. Modular → Divided into independent, reusable parts (e.g., functions).

5. Portable → Can run on different computers with minimal changes.

6. Maintainable → Easy to update when requirements change.