Process-of-Program-Development-process.pdf

269 views 16 slides Mar 07, 2023
Slide 1
Slide 1 of 16
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16

About This Presentation

CT 8 PROGRAMMING


Slide Content

PROCESS OF PROGRAM DEVELOPMENT
PROCESS

THEVARIOUS STAGESINTHE
DEVELOPMENT OFACOMPUTER
PROGRAMARE:
1.Problem Definition
2.Program Design
3.Coding
4.Debugging
5.Testing
6.Documentation
7.Maintenance
2

3
INTRODUCTION
H O W W E D I D L A S T Y E A R
3

PROBLEM
DEFINITION
L E T ’ S D I V E I N
4

5
•Thefirststepintheprocessofprogramdevelopmentis
thethoroughunderstandingandidentificationofthe
problemforwhichistheprogramorsoftwareistobe
developed.
•Inthissteptheproblemhastobedefinedformally.
•AllthefactorslikeInput/output,processingrequirement,
memoryrequirements,errorhandling,interfacingwith
otherprogramshavetobetakenintoconsiderationinthis
stage.

T H I N K W E L L
Program Design

•Thenextstageistheprogramdesign.Thesoftware
developermakesuseoftoolslikealgorithmsand
flowchartstodevelopthedesignoftheprogram.
•Algorithm
•Flowchart

CODING
L O O K I N G A H E A D
8

•Oncethedesignprocessiscomplete,theactualcomputerprogramiswritten,
i.e.theinstructionsarewritteninacomputerlanguage.
•Codingisgenerallyaverysmallpartoftheentireprogramdevelopmentprocess
andalsoalesstimeconsumingactivityinreality.
•Inthisprocessallthesyntaxerrorsi.e.errorsrelatedtospelling,missing
commas,undefinedlabelsetc.areeliminated.
•Foreffectivecodingsomeoftheguidelineswhichareappliedare:
•Useofmeaningfulnamesandlabelsofvariables,
•Simpleandclearexpressions,
•Modularitywithemphasisonmakingmodulesgeneralized,
•Makinguseofcommentsandindentingthecodeproperly,
•Avoidingjumpsintheprogramtotransfercontrol.

10
DEBUGGING
10
NEXT IN LINE

•Atthisstagetheerrorsintheprogramsaredetectedandcorrected.
•Thisstageofprogramdevelopmentisanimportantprocess.
Debuggingisalsoknownasprogramvalidation.
•Somecommonerrorswhichmightoccurintheprogramsinclude:
•Uninitializationofvariables.
•Reversingoforderofoperands.
•Confusionofnumbersandcharacters.
•Invertingofconditionsegjumpingonzeroinsteadofonnotzero.

TESTING
•Theprogramistestedonanumberofsuitabletestcases.
•Atestplanoftheprogramhastobedoneatthestageofthe
programdesignitself.
•Thisensuresathoroughunderstandingofthespecifications.
•Themosttrivialandthemostspecialcasesshouldbe
identifiedandtested.
•Itisalwaysusefultoincludethemaximumandminimum
valuesofallvariablesastestdata.

DOCUMENTATION
L E T ’ S D I V E I N
13

•Documentationisaveryessentialstepinthe
programdevelopment.
•Documentationhelptheusersandthepeople
whomaintainthesoftware.
•Thisensuresthatfuturemodificationifrequired
canbedoneeasily.Alsoitisrequiredduring
redesigningandmaintenance.

MAINTENANCE
L E T ’ S D I V E I N
15

•Updatingandcorrectionoftheprogramforchanged
conditionsandfieldexperienceisaccountedforin
maintenance.
•Maintenancebecomesessentialinfollowingsituations:
•Changeinspecification,
•Changeinequipment,
•Errorswhicharefoundduringtheactualexecutionof
theprogram.
Tags