C Programming Notes 1
C Programming Notes 1
02
UNII -| shatste
(i) Problem definition
PROGRAM D¾VELOPMENT carefully understand the
Befor thinking the solution,
AND INTRODUCTION TO C (problem situvation) and
define a well.
nature of the problem
defined problem.
1.1. Program
(ii) Requirement analysis
Program definition expectations of the user
Requitement is defined as the
Programi is defined as a sequence of instruçtions analysís is a detailed study
written to perforrm à well defined' task with a çomputer) from the program. Requirement
the program and their
of the various operations performed by
profamdevelopment cyele, relationships within and .Out side the
in
program, [the
accordance with user
bound¡ries [Link] program]
Prograrm development cycle is a [Link] step
prodedure usedË to build. cömputer, program,. These :steps requirement. In requirement analysis stage. programmer must
guides the computer programmers to develop- good program decide the following.
to satisty the end users.)The. fiuregiven below. shows the a. Type of the input data.
steps used in program development cycle: b. The needed output structure
ProbleH which
Theconditions andconstraints under
1idefintion C.
(i) Conmunication
Area = T
Circumferènce =2nr
wherer t- radius [Link] circle
Algorithm
Begin
Ihput r
Area ¢ T*r r
ircumference -2*n*r
Qutput Area, Circumference
End