Pgdca
Pgdca
Pgdca
Statement of Problem
Mathematical Decision
Flowchart
Psuedocode
Dryrun
Testing
Coding
Psuedocode…
© Copyright Reserved for : MIIT Computer Education, Bargarh 6
Programming Life Cycle :
• Statement of Problem: What the problem of program
asked and how to solving that program.
• Knowledge of mathematical decision.
• Flow Chart :A Graphical presentation of logical step
that involve in a program is called flow chart.
Start
Sum = 0
Input a, b
Sum = a+b
Print Sum
Stop
Continued Flowchart Graphics
© Copyright Reserved for : MIIT Computer Education, Bargarh 7
Programming Life Cycle :
• Pseudocode : Instead of using symbol to represent
program logic step is called pseudocode. Also We
can Define Psuedocode is a program analysis tools
that is used for planning program logic. It is an
imitation of actual computer instruction written
ordinary natural language Such as English.
Example
Begin
Input n1,n2
Sum=n1+n2
Display Sum
End
Example of Variables :-
Age =25
City =“CUTTACK”
Counter = counter +1
3. Data Types :
Data Types
Alphabets
Numeric
Alphanumeric
Logical
Date
Currency
Arithmetic
Relational
Logical
String
= Equal to
< Less Than
<= Less than or equal to
# Not Equal to
> Greater than
>= Greater than or equal to
1. System Flowchart
2. Program Flowchart
a. Flowchart b. Iteration/Loop
c Relational Operator
Sequence
Selection
Loop or Iteration
Question Bank :
1. Draw a flowchart to calculate simple interest.
2. Draw a flowchart to input a Fahrenheit value and convert into
celcious.
3. Draw a flowchart to find out the area and perimeter of a circle.
4. Draw a flow chat to find out the area of a rectangle .
5. Draw a flow chat to input a day value and convert into how
many days and how many month are there.
Start
Input A
If N
A=5
Y
A=a+5
Print A
Stop
N Y
If Print B
Input A, B, C If B > C
A>B
N
Y
N
If a>c Print C
Y
Print A
Stop
Loop Initialization
Loop Body
Loop Modification
Loop Exit
If
N
Stop
N <= 10
Y
Print N
N= N+1
Such Errors can only be detected with the help of test data that will give the
input value of A & B and the resultant value that should come out from
the program as a result of the operation performed on A and B. If the
result given by the computer and the result manually with the help of a
calculator are same, then you can say that there is no more logic error.
Otherwise a logic error may be present in the program.