1 / 11

Flowcharts and Pseudocode

Flowcharts and Pseudocode. Flowchart. represent the algorithm graphically flow of the process indicated with arrows that connecting the symbols

jesse
Download Presentation

Flowcharts and Pseudocode

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. Flowcharts and Pseudocode

  2. Flowchart • represent the algorithm graphically • flow of the process indicated with arrowsthat connecting the symbols • shown with symbolic shapes-lozenge represent start and -arrow represent the direction of the steps-rectangle represent working process-parallelogram represent input or output-rhombus represent of decision

  3. Pseudocode • represent the algorithm by text narratively • Omits some complexprogramming code • help people to understand the algorithm in a easilyway

  4. Example of Flowcharts and Pseudocode • A program to calculate the total number and average of the selling of mobile phone for a week from Monday to sunday • Draw a flowchart and pseudocode to show the algorithm

  5. Pseudocode: 10 Input Mon,Tue,Wed,Thu,Fri,Sat Start Input Mon, Tue, Wed, Thu ,Fri, Sat

  6. Pseudocode: 20 Total=Mon+Tue+Wed+Thu+Fri+Sat Start Input Mon, Tue, Wed, Thu ,Fri, Sat Total=Mon+Tue+Wed+ Thu+Fri+Sat

  7. Pseudocode: 30 Average = Total /6 Start Input Mon, Tue, Wed, Thu ,Fri, Sat Total=Mon+Tue+Wed+ Thu+Fri+Sat Average=Total/6

  8. Pseudocode: 40 Average = Output Total ,Average Start Input Mon, Tue, Wed, Thu ,Fri, Sat Total=Mon+Tue+Wed+ Thu+Fri+Sat Average=Total/6 Output Total,Average

  9. Pseudocode: 10 Input Mon,Tue,Wed,Thu,Fri,Sat 20 Total=Mon+Tue+Wed+Thu+Fri+Sat 30 Average = Total /6 40 Average = Output Total ,Average Start Input Mon, Tue, Wed, Thu ,Fri, Sat Total=Mon+Tue+Wed+ Thu+Fri+Sat Average=Total/6 Output Total,Average End

  10. Advantage-get the structure of the algorithm clearly -reduce the errors when processing the algorithm Disadvantage-need time to preparea complete flowchart -not suitable for showing complex algorithm Advantage and disadvantage of Flowcharts

  11. Advantage-beginner of computer users to understand the algorithm easily-no restrictions on programming syntax -better readability Disadvantage-need time to preparea complete flowchart Advantage and disadvantage of the Pseudocode

More Related