• Programming is a process of problem solving
• Problem solving techniques (AOD):
1. Analyze the problem
2. Outline the problem requirements
3. Design steps (algorithm) to solve problem
PDLC contains 6 phases which are:
1. Problem Definition
2. Problem Analysis : IPO, PAC
3. Algorithm Development : algorithim, psuedocode, flowchart
4. Coding and Documentation : Syntax
5. Testing and Debugging : Eliminating errors
6. Maintenance : Documentation
Step 1 - Problem definition
-Define and understand problem, boundaries and requirements needed
Step 2 - Problem Analysis
- Identify the IPO
(Input - Given, process- formula, output- result)
- Identify the PAC (Problem Analysis Chart)
(Given data - Input, Required result - output, Processing required - Formula
Solution Alternatives - assumptions)
Summary of Step 1 and 2
Step 1 : Understanding feasibility and limitatinon.
Step 2 : Input - prerequisite, data that exist at the beginning of the problem
Output - – the expected data/information/result from the program
Process - set of steps need to be done in getting the output
IPO CHART - extends and organizes the PAC (Adds more details)
ALGORITHM CONSTRUCTION
- a formula, and a step-by-step procedure to be followed in
order to obtain the solution to a problem.
- must arrive at a correct solution within a finite time
- clear, accurate and definite
- should be implementable to programming language
Pseudocode
• Text-based approach → simplified version of programming
codes, written in plain English language
-Organized like an outline, And has indentation like programs
-Only consists of executable instruction
LOGIC ERRORS
-logical errors can be tricky. backwards by looking at the output of the program
and
trying to figure out what it is doing
Maintenance
• Integrate your code or program with others (if necessary)
• Test the whole complete system
– Development team
– User
• Documentation
– Testing result
– User Manual or User Guide