WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2
OBJECTIVES SHOULD BE ABLE TO explain what an algorithm, pseudocode and flowchart are; Recognize the important of an algorithm, pseudocode, and flowchart; Create an algorithm, pseudocode, and flowchart.
THINK ABOUT IT! Following instructions in a cookbook is same as following instructions using an algorithm, pseudocode, or flowchart. These are programming tools that show the step-by-step procedure in solving computer programs.
PROCESS I SOLVING PROGRAMMING PROBLEMS problem analysis algorithm coding complier linker execution output library
WHAT IS ALGORITHM?
ALGORITHM An algorithm is a step-by-step procedure to solve the problems. It makes the whole procedure more efficient and consistent. It also helps in identifying decision points, processes, and essential variables to solve the problem. A programmer can also see and determine easily the errors in a particular process using algorithm.
WHAT IS PSEUDOCODE?
PSEUDOCODE A pseudocode is a description of an algorithm using natural language, which makes reading of the program easier. It uses short English-like statements to write codes for programs before you actually create it in a specific language.
WHAT IS A FLOWCHART?
FLOWCHART A flowchart is a diagram presenting the logical sequence in which a combination of steps or operations is to be performed.
BASIC SYMBOLS USED IN FLOWCHARTING