Program Development Life Cycle (PDLC), Algorithms & Flowchart Design
Unit 3: Computer Software, Programming Languages & Logic Formulation • Fundamentals of Computer
👨🏫 Professor's Mental Model: Architectural Blueprint vs Construction Recipe
Ek badi building banane se pehle architect naksha (Flowchart) banata hai aur builder step-by-step instructions (Algorithm) likhta hai taaki deewar gir na jaye. Computer programming me bhi direct coding shuru nahi ki jati! Pehle problem ko samajh kar uska step-by-step logic (Algorithm) aur visual diagram (Flowchart) taiyaar kiya jata hai.
Academic Lecture Notes & Solved Study Pages
Unit 3 • Core Concepts, Step-by-Step Proofs & Notebook Solutions
1. The 6 Phases of the Program Development Life Cycle (PDLC)
1. Problem Definition: Thoroughly analyze the client's problem, specifying clear inputs, expected outputs, constraints, and boundary conditions.
2. Problem Analysis: Identify required variables, formulas, edge cases, and computational memory needs.
3. Design (Algorithm & Flowchart): Formulate step-by-step sequential logic independently of any programming language.
4. Coding: Translate the designed algorithm into high-level source code (C, C++, Java, Python).
5. Testing & Debugging: Execute test cases to detect and fix:
6. Documentation & Maintenance: Write technical manuals, comments, and perform periodic bug fixes and updates.
2. Algorithms: Definition & 5 Core Characteristics
An Algorithm is a finite, unambiguous, step-by-step sequence of instructions designed to solve a specific computational problem.
Every valid algorithm MUST satisfy Donald Knuth's 5 fundamental properties: 1. Input: Zero or more quantities externally supplied. 2. Output: At least one quantity produced as a result. 3. Definiteness: Each instruction must be completely clear, unambiguous, and precise. 4. Finiteness: The algorithm must terminate after a finite number of execution steps. 5. Effectiveness: Every operation must be sufficiently basic so that it can be carried out exactly in a finite amount of time.
3. Standard ISO Flowchart Symbols & Conventions
A Flowchart is a standardized graphical representation of an algorithm using geometric symbols connected by directional flow lines:
4. Solved Academic Algorithms & Flowchart Examples
Example 1: Algorithm to Find the Largest of Three Numbers (A, B, C):
PRINT 'A is the Largest'
ELSE IF (B >= A) AND (B >= C) THEN
PRINT 'B is the Largest'
ELSE
PRINT 'C is the Largest'
Example 2: Algorithm to Compute Factorial of a Number N (N!):
Fact = Fact * i
i = i + 1
END WHILE
| Geometric Shape | Symbol Name | Functional Role | Example Operation |
|---|---|---|---|
| Oval / Rounded Box | Terminal Symbol | Marks the starting and ending boundaries | START / STOP / END |
| Parallelogram | Input / Output | Data entry and result display operations | INPUT Radius / PRINT Area |
| Rectangle | Processing Symbol | Arithmetic calculations & variable assignments | Area = 3.14159 * R * R |
| Diamond / Rhombus | Decision Symbol | Conditional branch with True/False paths | Is N % 2 == 0? |
| Directional Arrow | Flow Line | Shows sequence and flow of execution control | Points to next operation |
| Small Circle | On-Page Connector | Joins separate flowchart lines neatly | Circle with label 'A' |
🎯 University Exam Scoring Blueprint
- Draw all 6 standard ISO flowchart symbols with their names and sample operations.
- List Donald Knuth's 5 core characteristics of an algorithm (Input, Output, Definiteness, Finiteness, Effectiveness).
- Write the step-by-step algorithm and draw the flowchart to check whether a given integer is Prime or Composite.