Preview

What Is Pseudocode?

Satisfactory Essays
Open Document
Open Document
413 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
What Is Pseudocode?
What is Pseudocode
First, you need to understand that pseudocode is not a programming language. Pseudocode cannot be compiled nor executed on a computer, and there is no real formatting or syntax rules. It is simply one step, a very important step, in producing the final code. The benefit of pseudocode is that it enables the designer to concentrate on the algorithms without worrying about all the syntactic details of a programming language. In fact, you can write pseudocode without even knowing what programming language will be used for the final implementation.

Pseudocode consists of short, English phrases used to explain specific tasks within a program's algorithm. Pseudocode should not include keywords in any specific computer languages. It should be written as a list of consecutive phrases.

How to write Pseudocode
[ModuleName] Module
• Keyword
• Must have an End Tag

Example: DisplayResults Module End DisplayResults Module

Declare [DataVariableName] as [DataType]
• DataVariableName can be any name chosen as long as it is one word.
• DataType can be one of the following basic types: Real, Integer, and String. o Real – any positive or negative number that has decimals (2.34, -9.987) o Integer – any positive or negative whole number (768, -98) o String – any alphanumeric value (123 Main Street, Joe Smith)

Example: Declare count As Integer Declare lastName As String Declare price As Real

Display (or Write) [Sting or data variable to be displayed]
• If sting is used, you must have it start and end with quotations

Example 1: Display “Good Morning”

Example 2: Declare lastName As String lastName= “Jones” Display lastName

Example 3: Declare testScore As Integer testScore = 95 Display NumBurgers Display “Your test score is: ”, testScore

Call [ModuleName] Module
• ModuleName must be a valid module declared in the program

Example: Main Module Call DisplayResults Module End Main Module

You May Also Find These Documents Helpful

  • Satisfactory Essays

    IT210 Week 3

    • 756 Words
    • 4 Pages

    Side note; I had a very difficult time with this class in the first 3 weeks. However, I stumbled upon the Pseudocode Building Blocks tutorials on Youtube by Jack Lusby. They have helped me out tremendously.…

    • 756 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Week 1 Lab_ CIS_115

    • 439 Words
    • 2 Pages

    List all variables you will use (use valid variable names). Indicate whether the data type is string, integer, or decimal, and so on.…

    • 439 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    1.) What is pseudocode? A.) Pseudocode is when you pre write a program in your own type of language to lay it out…

    • 453 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Step 1: Examine the following algorithm as a base for how the program should flow. (Reference: Designing a Program, page 31).…

    • 777 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt1420 week 2

    • 320 Words
    • 3 Pages

    Pseudocode is an informal language that has no syntax rules, and is not meant to be compiled or executed.…

    • 320 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    IT/210 Appendix D

    • 453 Words
    • 4 Pages

    Up to this point, you have identified the processes the program must perform, but you have not given any consideration to exactly how the processes work together to solve the problem. At this point, you must generate a description of the processing using pseudocode, a natural language description of the processing the application must perform.…

    • 453 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    IT104 Assignment Unit 5

    • 307 Words
    • 2 Pages

    Pseudocode is an informal language that has no syntax rules, and is not meant to be compiled or executed.…

    • 307 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    IT 210 appendix d

    • 264 Words
    • 2 Pages

    Match the activity or purpose on the left with the appropriate description on the right by typing in the corresponding letter under the Answer column.…

    • 264 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt1420 Unit 3 Essay

    • 502 Words
    • 3 Pages

    I identify myself with the flowcharts technique, because it gives me a global overview about my work and is easier to identify error during the process.…

    • 502 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Coding Application Report

    • 2395 Words
    • 10 Pages

    The following Coding Application statements are intended to familiarize you with the coding process in a more concentrated and definitive manner. Please feel free to share with your instructor and with your fellow students your findings and methods. If you have questions this is the time to ask for clarity and explore the outcomes.…

    • 2395 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    Compter Science

    • 819 Words
    • 4 Pages

    Programming statements in a low-level language will be close to natural language and will use standard mathematical notation.…

    • 819 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    MDM4U – Grade 12 Data Management – Exam Unit 1: One Variable Analysis Types of Data Numerical Data Discrete: consists of whole numbers Ie. Number of trucks. Continuous: measured using real numbers Ie, Measuring temperature.…

    • 2372 Words
    • 10 Pages
    Powerful Essays
  • Powerful Essays

    It 210 Weeks

    • 2760 Words
    • 12 Pages

    This course provides students with a basic understanding of programming practices. Concepts covered include flowcharting, pseudocode methodologies, and an understanding of programming practices. Students will learn how these concepts, when properly applied, improve program design.…

    • 2760 Words
    • 12 Pages
    Powerful Essays
  • Good Essays

    Macro Examples

    • 1120 Words
    • 5 Pages

    7. The If…Then…Else…End If code allows code to be conditionally executed depending on whether a specified logical condition has been met.…

    • 1120 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    CS 220 – Programming w/ Data Structures: You have missed one assignment and one quiz. Your instructor has extended your assignment due date to this Sunday, April 10. Your instructor has also let you to take your Quiz # 2 during his office hours during this week. Let me know if you need additional support to study for this quiz. Your grade to date in this class is 30.2/37 81.62% B.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays

Related Topics