Chapter 1 Problem Solving 2nd Year Computer
Chapter 1 Problem Solving 2nd Year Computer
Problem solving in computer science means identifying a problem and developing a method to solve it using
a computer. This involves logical thinking, step-by-step planning, and then writing the actual program.
- It should be correct, unambiguous, and should terminate after a certain number of steps.
d. Coding:
f. Documentation:
3. Algorithm
1. Start
Chapter 1: Problem Solving (Computer Science - 2nd Year, FBISE)
2. Input A, B
4. End
4. Flowchart
Symbols:
- Oval: Start/End
- Rectangle: Process
- Parallelogram: Input/Output
- Diamond: Decision
5. Pseudocode
Example:
Start
Input A, B
If A > B then
Display A
Else
Display B
End