1 / 12

Flow Charts

Flow Charts. Introduction. A flowchart is a type of diagram that represents an algorithm or process. Shows the steps as boxes of various kinds, and their order with connecting arrows.

leal
Télécharger la présentation

Flow Charts

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Flow Charts

  2. Introduction • A flowchart is a type of diagram that represents an algorithm or process. • Shows the steps as boxes of various kinds, and their order with connecting arrows. • Flowcharts are used in analyzing, designing, documenting or managing a process or program in various fields.

  3. The Beginning And The End • The start of a process is depicted by the following box type.In PPT, this box is under Shape->Flow Chart->Terminator • The end of a process is depicted by the following box type.In PPT, this box is under Shape->Flow Chart->Terminator • Note the same box shape is used for both start and stop. Start Stop

  4. The Steps That Make The Process • Each stepof a process is depicted by the following box type.In PPT, this box is under Shape->Flow Chart->Process • All boxes are connected by arrows to show the process flow.In PPT, the arrow is under Shape->Lines->Arrow A Step Step 1 Step 2 Start Stop

  5. Start A Sample Process MATH 0099 The Georgia Gwinnett CollegeMath Sequence for Freshmanthrough College Algebra MATH 1111 Stop

  6. Decisions • In many situations a process may proceed with different steps depending on a question or decision. • A decision in a process is depicted by the following box type.In PPT, this box is under Shape->Flow Chart->Decision • Each decision creates a branch allowing the process to continue in one of two different paths. Is … ? Path 1 Path 2

  7. Start Is compass score above 36? A Sample Decision Yes No MATH 0099 The Compass Algebra Test may allow students to skip a math class. MATH 1111 Stop

  8. Loops • In many situations a process needs to repeat certain steps multiple times. This is called a loop. • A decision is used to select when the loop should happen. In PPT, the arrow with elbows is under Shape->Lines->Elbow Arrow Connector Step Repeat? Yes No

  9. Start Is compass score above 36? Yes A Sample Loop No MATH 0099 Most students will need a “C” or better to complete the GGC Freshman Math Sequence. MATH 1111 No Is grade “C” or better? Yes Stop

  10. Review of Symbols • Start Symbol: 1 arrow out Stop Symbol: 0 arrows out • Step Symbol: 1 arrow out • Decision Symbol:2 arrows out Start Stop Step Question? No Yes

  11. Blackjack Exercise The card game “Blackjack” requires the dealer to follow very specific rules for dealing cards to himself. He must deal one card face down, and then deal face up cards until his hand has a total score greater than 16. If his final score is greater than 21, then the dealer “busts”, else the dealer “stands”. Either way, his deal is complete. Create a flow chart on the right hand side depicting the “dealer” process described above. Note, for this exercise, you do not need to know how a total score is calculated, simply include a step called “calculate score”.

  12. Start Deal Face Down Card Deal Face Up Card Blackjack SolutionRemove from Student Copy Calculate Score No Is score greater than 16 Yes Is score greater than 21 Yes No BUST STAND Stop

More Related