Steps in Writing a
program
Steps to Writing a Program
The general steps for writing a program include the
following:
1. Understand the problem you are trying to solve
2. Design a solution (Flow chart or Pseudocode)
3. Write code
4. Test and debug
5. Test with real-world users
6. Release program
Step 1- understanding the problem
a. Identify inputs
b. Determine the process to carried out
c. Identify outputs
Step 2 :- Design the solution
Program design consists of the steps a programmer should do
before they start coding the program in a specific language.
These steps when properly documented will make the
completed program easier for other programmers to maintain in
the future.
Use Pseudocode or flowchart
Using Flow chart
A flowchart is a diagram that depicts a process, system or computer
algorithm. They are widely used in multiple fields to document, study,
plan, improve and communicate often complex processes in clear, easy-
to-understand diagrams. Flowcharts, sometimes spelled as flow charts,
use rectangles, ovals, diamonds and potentially numerous other shapes
to define the type of step, along with connecting arrows to define flow
and sequence.
Using Pseudocode
Pseudocode is a detailed yet readable description of what a computer
program or algorithm must do, expressed in a formally-styled natural
language rather than in a programming language. Pseudocode is
sometimes used as a detailed step in the process of developing a
program
Using Pseudocode- example
Step 1: Begin
Step 2: Input x
Step 3: input y
Step 4: let sum= x + y
Step 5: output sum
Step 6: End