1 / 16

Flowcharting Symbols

Flowcharting Symbols. Terminal. Decision. Input / Output. On page connector. Off page connector. Directional Lines . Processing. Piecing together a Flowchart. All programs must have a beginning. This is shown using the terminal symbol and using the word Start within the symbol. Start.

libitha
Download Presentation

Flowcharting Symbols

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. Flowcharting Symbols Terminal Decision Input / Output On page connector Off page connector Directional Lines Processing

  2. Piecing together a Flowchart • All programs must have a beginning. This is shown using the terminal symbol and using the word Start within the symbol. Start

  3. Input / Output When we want to read a record, write a record to a disk or print the record this symbol is used. Read/ Write/ Print

  4. Processing Symbol This symbol contains arithmetic operations. Calculations are always completed with a symbol such as this. Processing

  5. Decision Symbol When we must answer a question either yes or no, true or false a decision symbol is used. Since there are two possible answers to the question, there are also two possible paths Is this the last record to process?

  6. Connecting Symbols • This symbol is used to keep the program neat yet provide a means of connecting two points on the same page without using flowlines. On-page Connector

  7. Connecting Symbols • This symbol is used to keep the program neat yet provide a means of connecting two points on different pages without using flowlines. Off-page Connector

  8. FLOWCHART Start LAB 4 Read a Record Print a Line Read a Record End of File n y Print End of listing Message End

  9. Creating a Flowchart • Let’s look at how we create a flowchart. • We will examine each piece and then will once again look at the whole flowchart

  10. Start Processing READ CN$, DEMO, REPUB, OTHER Read a Record

  11. DO WHILE CN$ <> “END” End of File

  12. If the answer to the question in no then the processing follows the no path and creates a loop that will reoccur until the answer to the question is yes. Print a Line Read a Record End of File n

  13. We need to print the present record and read another record The following code causes that to happen PRINT CN$, DEMO, REPUB, OTHER READ CN$, DEMO, REPUB, OTHER Print a Line Read a Record End of File n

  14. Each time we read a record we must again ask if we have reached the end of file. Only when the answer is yes will we stop processing with in the loop. Print a Line Read a Record End of File n y

  15. When we have finished processing all the records we are to print a message stating the end of processing. the following code shows how End of File PRINT prints a blank line y Print End of listing Message PRINT “END OF FILE” Ends processing End

  16. Start The complete flowchart for Lab 4. Read a Record Print a Line Read a Record End of File n y Print End of listing Message End

More Related