


Shown in table 1.3 is an example of a multiple selection processes where the program will locate were the particular input belongs. Table 1.2 sum of two numbers flowchart and pseudocodeĭiamond shape or decision symbol in the flowchart is usually used in representing decision making or selection process in the program. After solving for the sum, the result will be displayed to the screen.īegin input x and y sum = x+y print sum End Then, the program will compute for the total and contain the result through the variable sum. Itillustrates that the program needs values for variablesxand y. Table 1.2 (sum of two numbers) shows an example of pseudocode with an equivalentflowchart. It is usually drawn using certain special-purpose symbols connected by arrows called flow lines.Table 1.1 shows the basic flowchart symbols with its equivalent meaning Example: Begin input length, width perimeter = 2 * (length + width) area = length * width print perimeter print area end A flowchartis a graphical representation of an algorithm. It summarizes the program flow but excludes underlying programming details. Pseudocode is an informal program description that does not contain code syntax or underlying technology considerations. Find the perimeter using the following equation: Perimeter=2*(length + width) Find the area using the following equation: Area = length * width Display results. Example: the algorithm in finding the perimeter and area of a rectangle is 1. It is commonly used for data processing, calculation,and other related computer and mathematical operations.An algorithm is also used to manipulate data in various ways, such as inserting a new data item, searching for a particular item or sorting an item. Introduction The algorithmis a step by step method of solving a problem. Also, you are expected to design your algorithm, pseudocode,and flowchart based on the given situation and criteria. Laboratory Exercise # 1 ALGORITHM DEVELOPMENT AND FLOWCHARTING Objectives:Īt the end of this laboratory, you are expected to understand the importance of algorithm, pseudocode,and flowchart in computer programming. UNIVERSITY of MINDANAO College of Engineering Education
