Notes
1. Introduction to Problem Solving Using Computers
Problem solving using computers involves a systematic approach to understanding a problem,
designing a solution, implementing it using code, and verifying that the solution works correctly.
Computers process data using hardware (physical components) and software (programs and
instructions).
Key Stages:
• Understanding the problem – identifying inputs, outputs, and constraints.
• Designing a solution – creating algorithms or structured steps.
• Implementing the solution – writing the program using a programming language.
• Testing and debugging – checking correctness and fixing errors.
• Documentation – explaining code and logic for future use.
, 2. Problem Solving Steps
1) Define the problem clearly.
2) Break the problem into smaller parts.
3) Develop an algorithm (step-by-step solution).
4) Represent the algorithm using pseudocode or flowcharts.
5) Choose a programming language and convert logic into code.
6) Test the code with different inputs.
7) Debug errors and finalize the solution.
3. Algorithms
An algorithm is a finite, ordered set of instructions designed to solve a problem. It must be clear,
unambiguous, and must terminate after a limited number of steps.
Characteristics:
• Finiteness – must end after finite steps.
• Definiteness – each step should be clearly defined.
• Input – may accept zero or more inputs.
• Output – produces at least one output.
• Effectiveness – steps must be simple and executable.
Example Algorithm: Addition of Two Numbers
1. Start
2. Read values of A and B
3. Add A and B
4. Display the result
5. Stop