Program Development Life Cycle
The stages a program goes through from idea to finished product.
- Click the stages below in the order they happen.
//The four stages
Analysis: work out exactly what is needed (abstraction and decomposition happen here). Design: plan the solution using structure diagrams, flowcharts and pseudocode. Coding: write and iteratively test the program. Testing: run it with carefully chosen data to prove it works.
//Choosing test data
You must be able to give an example of each type. For a rule like 'accept a mark from 0 to 100':
Normal : 45 should be accepted
Boundary : 0, 100 the extreme values that ARE valid
-1, 101 just outside, should be rejected
Abnormal : "cat" wrong type, should be rejected
Extreme : 0, 100 largest/smallest acceptable//Syntax error vs logic error
A syntax error breaks the rules of the language, so the program will not run at all — a missing bracket or a misspelled keyword. A logic error runs perfectly but produces the wrong answer — using + where you meant −. Only testing finds logic errors.
CHECK YOURSELF
1.A program runs perfectly but prints the wrong total. What kind of error is this?
2.A field accepts marks from 0 to 100. Which is BOUNDARY test data?
3.Which stage comes immediately after analysis?