• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Basic Flowcharting
 

Basic Flowcharting

on

  • 15,083 views

Goes through basic flowcharting symbol and their use in selection and repetition programming structures.

Goes through basic flowcharting symbol and their use in selection and repetition programming structures.

Statistics

Views

Total Views
15,083
Views on SlideShare
15,022
Embed Views
61

Actions

Likes
5
Downloads
435
Comments
1

5 Embeds 61

http://www.slideshare.net 41
http://achsan.info 13
http://www.slideee.com 5
http://isnict.wordpress.com 1
http://go.flvs.net 1

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Basic Flowcharting Basic Flowcharting Presentation Transcript

    • Flowchart Algorithm Description
    • Always begin with a BEGIN: There should be one begin and one end in each program: one way in, one way out. Subprograms have their own begin and end. Terminals (begin and end) should be horizontally central on the page. Don't forget to draw a line from the centre of the terminal. Begin
    • You probably need to communicate with the user. Give the user instructions and accept input from the user with this symbol. Don't forget the line! Input / Output: Begin Input / Output
    • Process: You can set the value of a variable or perform a calculation in a process. Begin Input / Output Process
    • Example: a basic conversion algorithm The input / output symbol is used to show the user the results of the calculation. REMEMBER: one BEGIN and one END. You now have enough symbols to accept input, perform a calculation on it and display the result. Begin Cm = inches * 2.54 Get Inches Display cm End
    • What about user choice? A diamond shape is used to show decisions... ?
    • Selection allows the program to run different paths depending on a condition. The condition (question) resolves to TRUE or FALSE. True False Using Selection: Begin Display menu: 1. Inches to cm 2. cm to inches Get choice Choice = 1 End Convert cm Convert Inches
    • Multi-way Selection: CASE statements allow different paths depending on the value of a testing variable.
    • What about repetition? Repetition also involves a decision. To continue or not to continue... ?
    • Guarded loops: If the condition is true, the loop executes. True False Note: the up line has an arrow! ?
    • Unguarded loops: Note: the up line has an arrow! The loop executes until the condition is true. True False ?
    • The End