PDLC Computer Science
PDLC Computer Science
» analysis
» testing
» maintenance
Testing Coding
Fig: 5 pillar of PDLC
Phases of program development life cycle
1. Analysis:
Clearly define your problem
Requirement specification
Decomposition –Breaking down a problem in smaller parts
2. Design
Formal documentation
Structure chart
Flow chart 4. Testing
Pseudocode Whole program will be tested using different sets of test
3. Coding data
Programing language to build program Validation
Verification
Error correction
5. Maintenance
Documentation
Computer System, Sub System and decomposing a problem
What is Computer System?
» inputs – time to set the alarm, remove a previously set alarm time, switch an alarm off, press snooze button
» processes – continuously check if the current time matches an alarm time that has been set, storage and
removal of alarm times, management of snooze
» outputs – continuous sound/tune (at alarm time or after snooze time expired)
» storage – time(s) for alarms set.
Visualization of decomposition with an example
An Alarm App
1. Time to set alarm 1. Clock time= 1. Make Sound/tune 1. Times for alarm
2. Remove previous Alarm time [at alarm time and set
alarm 2. Store and Remove after snooze expires]
3. Switching off alarm time
alarm 3. Management of
4. Press snooze snooze
button
Methods used to design and construct a solution to a problem
A flowchart shows diagrammatically the steps required to complete a task and the
order that they are to be performed. These steps, together with the order, are
called an algorithm.
Pseudocode is a simple method of showing an algorithm. It describes what the
Begin algorithm does by using English key words that are very similar to those used in
a high-level programming language.
START
GET current time
WHILE TRUE
GET current time
Decision IF current time equals alarm time THEN
SOUND alarm
ELSE
WAIT for 30 seconds
Process END WHILE
STOP
End