The document discusses algorithms and flowcharts. It defines an algorithm as a set of instructions to solve a problem and lists requirements for algorithms. It then explains that flowcharts can represent algorithms using standard symbols, with the flow moving from top to bottom and left to right. Sample flowcharts are provided to illustrate accepting input, performing conditional checks, and outputting results based on those checks. The document concludes by providing an example algorithm and asking the reader to develop a corresponding flowchart.
The document discusses algorithms and flowcharts. It defines an algorithm as a set of instructions to solve a problem and lists requirements for algorithms. It then explains that flowcharts can represent algorithms using standard symbols, with the flow moving from top to bottom and left to right. Sample flowcharts are provided to illustrate accepting input, performing conditional checks, and outputting results based on those checks. The document concludes by providing an example algorithm and asking the reader to develop a corresponding flowchart.
The document discusses algorithms and flowcharts. It defines an algorithm as a set of instructions to solve a problem and lists requirements for algorithms. It then explains that flowcharts can represent algorithms using standard symbols, with the flow moving from top to bottom and left to right. Sample flowcharts are provided to illustrate accepting input, performing conditional checks, and outputting results based on those checks. The document concludes by providing an example algorithm and asking the reader to develop a corresponding flowchart.
ALGORITHMS AND FLOWCHARTING • An algorithm is a set of instructions that if followed in sequence will lead to a solution for the problem. An algorithm must: have a set of numbered steps, precise, unambiguous and have instructions that pass the flow of control from one process to another. It must eventually terminate. • Flowcharts are one of the ways that can be used to represent algorithms. It is a pictorial way of representing an algorithm using a set of standard symbols. Flowcharts are drawn from top to bottom, left to right. FLOWCHARTING SYMBOLS SAMPLE STRUCTURE START • Develop a flowchart that will accept a person's name and age. Enter Name, age • Check the person's age. • If age is > 21 then print out Yes Age No >21 that the person can vote, Output else print out you cannot can Output cannot vote. vote vote • End the program. End Complete the following • Develop a flowchart from the following Algorithm that inputs two numbers, adds the number and outputs the result. • Begin • Input num1 • Input num2 • Store num1 + num2 to sum • Output sum • End