Computer Programming 1: Using Pseudocode and Flowcharts
Computer Programming 1: Using Pseudocode and Flowcharts
1
USING PSEUDOCODE AND
FLOWCHARTS
When programmers plan the logic for a solution to a programming
problem, they often use one two tools “ pseudocode” or flowchart.
using pseudocode involves writing down all the steps you will use in program. Usually, programmers
preface their pseudocode with a beginning statement like start and end it with a terminating statement
like stop.
Drawing Flowcharts
When you create flowchart, you draw geometric shapes that contain the individual
statements and that are connected with arrows. Common flowchart symbols include:
To show the correct sequence of these symbols for the logic you are developing, you use
arrows, or flowlines, to connect the steps. Whenever possible, most of a flowchart should
read from top to bottom or from left to right on a page
The figure shows a complete flowchart for the program that doubles a
number, and the pseudocode for the same problem. You can see from
the figure that the flowchart and pseudocode statements are the same –
only the presentation format differs.
Exercises: