1 / 5

Pseudocode

Pseudocode. Chapter 13. Designing with Pseudocode. Pseudocode is “fake code” that allows the designer to represent the outline of essential or crucial code segments for the purpose of discussion. Pseudocode stops short of actual implementation. What is Pseudocode?.

adair
Download Presentation

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. Pseudocode Chapter 13

  2. Designing with Pseudocode • Pseudocode is “fake code” that allows the designer to represent the outline of essential or crucial code segments for the purpose of discussion. • Pseudocode stops short of actual implementation.

  3. What is Pseudocode? • Pseudocode is usually not compilable. • Some “formal” Pseudocode can be considered a “PDL”: Program design language. However many times it is just “made up as we go along.” • Pseudocode can be useful for estimating how much real code needs to be written: some pseudocode can be converted to real code and a ratio established to estimate how many lines of real code might be written.

  4. What is represented by pseudocode? • Major and important control flow: • Decisions (if/then/switch) • Function calls • Major and important data manipulation: • Dereferencing of major structures • Data comparisons and conversions

  5. What shouldn’t be represented by pseudocode? • Mundane manipulations: • Character-by-character operations (finding the end of string, etc.) • Just about anything that can be represented by a “code idiom”: leave something for the programmer to do!

More Related