Let's learn how to use pseudocode to plan a program. Diagram 4 illustrates pseudocode that describes the same process as Diagram 2. The pseudocode in Diagram 5 corresponds with the flowchart in Diagram 3. Both methods describe the process for an inventory program. It really is not easy to list the steps properly the first time you do a flowchart or write pseudocode.
Most programmers make several charts before they begin the actual coding.
However, if you do plan carefully, you'll find that coding your program is easier and it runs better and faster when completed. If the task cannot be completely described by one of these methods, it probably cannot be done by the computer at all. Well-written pseudocode or flowchart will help tremendously when you get ready to program, regardless of the computer language you choose. When you begin programming you can follow the outlines one step at a time, as you apply the rules of the language you choose. Diagram 3 Diagram 4 Diagram 5 Activities Develop a flowchart that reads two numbers on a card, adds the two numbers, and prints out the sum.