Unit-1 Introduction to Programming
Unit-1 Introduction to Programming
Program
•Problem Definition
•Problem Analysis
•Algorithm Development
•Coding & Documentation
•Testing & Debugging
•Maintenance
By Prof. Jitesh Solanki 3
Program Development Cycle
2. Problem Analysis
In phase 2, we determine the requirements like variables, functions, etc.
to solve the problem. That means we gather the required resources to
solve the problem defined in the problem definition phase.
6. Maintenance
During this phase, the program is actively used by the users. If any
enhancements found in this phase, all the phases are to be repeated
again to make the enhancements.
1. Sequence
2. Decision
3. Repetition
3. Repetition
Repetition which involves executing one or more
steps for a number of times can be implemented
using constructs like the while, do-while and for
loops.
Input A,B
Sum=A+B
Print Sum
Stop
By Prof. Jitesh Solanki 37
Example of Flowchart
Start
Input A,B
TRUE IS FALSE
A>B?
Print A Print B
Stop
By Prof. Jitesh Solanki 38
Advantages of Flowcharts
A flowchart is a diagrammatic representation that
illustrates the sequence of steps that must be
performed to solve a problem.