Presentation is loading. Please wait.

Presentation is loading. Please wait.

Programming Tools Flowcharts Pseudocode Algorithm Chapter 2.

Similar presentations


Presentation on theme: "Programming Tools Flowcharts Pseudocode Algorithm Chapter 2."— Presentation transcript:

1 Programming Tools Flowcharts Pseudocode Algorithm Chapter 2

2 Programming Tools Flowchart Pseudocode
Two tools are used to convert algorithms into computer programs: Flowchart Pseudocode Chapter 2

3 Algorithm A step by step series of instructions for solving a problem (a recipe is an example) Chapter 2

4 Problem Solving Example
How many stamps do you use when mailing a letter? Use one stamp for every five sheets of paper or fraction thereof. Chapter 2

5 Algorithm 1. Request the number of sheets of paper; call it Sheets. (input) 2. Divide Sheets by 5. (processing) 3. Round the quotient up to the next highest whole number; call it Stamps. (processing) 4. Reply with the number Stamps. (output) Chapter 2

6 Flowcharts Graphically depict the logical steps to carry out a task and show how the steps relate to each other. Chapter 2

7 Flowchart symbols Chapter 2

8 Flowchart symbols continued
Chapter 2

9 Flowchart example Chapter 2

10 Pseudocode Uses English-like phrases with some Visual Basic terms to outline the task. Chapter 2

11 Pseudocode example Determine the proper number of stamps for a letter
Read Sheets (input) Set the number of stamps to Sheets / 5 (processing) Round the number of stamps up to the next whole number (processing) Display the number of stamps (output) Chapter 2


Download ppt "Programming Tools Flowcharts Pseudocode Algorithm Chapter 2."

Similar presentations


Ads by Google