Preview

Pseudocode Standard

Good Essays
Open Document
Open Document
1507 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Pseudocode Standard
PSEUDOCODE STANDARD
Example

Pseudocode is a kind of structured english for describing algorithms. It allows the designer to focus on the logic of the algorithm without being distracted by details of language syntax. At the same time, the pseudocode needs to be complete. It describe the entire logic of the algorithm so that implementation becomes a rote mechanical task of translating line by line into source code.
In general the vocabulary used in the pseudocode should be the vocabulary of the problem domain, not of the implementation domain. The pseudocode is a narrative for someone who knows the requirements (problem domain) and is trying to learn how the solution is organized. E.g.,
Extract the next word from the line (good) set word to get next token (poor)
Append the file extension to the name (good) name = name + extension (poor)
FOR all the characters in the name (good)
FOR character = first to last (ok)
Note that the logic must be decomposed to the level of a single loop or decision. Thus "Search the list and find the customer with highest balance" is too vague because it takes a loop AND a nested decision to implement it. It's okay to use "Find" or "Lookup" if there's a predefined function for it such as String.indexOf().
Each textbook and each individual designer may have their own personal style of pseudocode. Pseudocode is not a rigorous notation, since it is read by other people, not by the computer. There is no universal "standard" for the industry, but for instructional purposes it is helpful if we all follow a similar style. The format below is recommended for expressing your solutions in our class.
The "structured" part of pseudocode is a notation for representing six specific structured programming constructs: SEQUENCE, WHILE, IF-THEN-ELSE, REPEAT-UNTIL, FOR, and CASE. Each of these constructs can be embedded inside any other construct. These constructs represent the logic, or flow of control in an algorithm.
It has

You May Also Find These Documents Helpful

  • Good Essays

    Declares > this is the statements that declare variables, constants, and other code elements, which can then be used within that block…

    • 193 Words
    • 1 Page
    Good Essays
  • Satisfactory Essays

    Newport News County has a T-Ball league in Hampton, VA situated in the Mallory community. . This is a part of a large community of the local T-Ball and youth league programs offered in the area. The league is for young children between the ages of four and seven. The league is for building character, teaching team work and development. Each T-ball team consists of 12-14 kids from all the surrounding cities. The league allows for parents to come in and volunteer as a means to save cost. Though all cities don't have a team, those that have teams are named after current MLB team names.…

    • 545 Words
    • 3 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
  • Satisfactory Essays

    Devs010 Unit 3 Assignment

    • 261 Words
    • 2 Pages

    Lab practical will be used to carry out these tasks, students will be prompted to develop programs in JavaScript.…

    • 261 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Procedural language is used for developing simple applications. The languages that use the procedural programming are Pascal and C languages. Some of the benefits of the procedural programming are: easy to read program code, easily maintainable program code as various procedures can be debugged in isolation, code is more flexible as you can change a specific procedure that gets implemented across the program.…

    • 337 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    pt1420 exam review

    • 738 Words
    • 3 Pages

    The words that make up a high level programming language are known as what? Keywords…

    • 738 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Like CPT codes, the use of Modifiers is employed to provide additional information that the code itself does not contain. These modifiers can be alpha-numeric or two letters. Two examples that are unlike CPT modifiers are UE which indicates used equipment and NU which identifies new equipment.…

    • 448 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    The Uniform Commercial Code (UCC) is govern commercial transaction through modernized laws. The primary purpose of the UCC is clarify and unify commercial laws.…

    • 152 Words
    • 1 Page
    Satisfactory Essays
  • Better Essays

    4) Assume that a pseudocode program contains the following module: Module display( Integer arg1, Real arg2, String arg3) Display " Here are the values:" Display arg1, " ", arg2, " ", arg3 End Module…

    • 1580 Words
    • 11 Pages
    Better Essays
  • Satisfactory Essays

    Codes—which are the most numerous—have five digits (with no decimals). Each code has a descriptor, which is a brief explanation of the procedure:…

    • 440 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Ais Ch. 11

    • 910 Words
    • 4 Pages

    1. A small sequence of programming code inserted into a program to fix an error or add a new feature…

    • 910 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Uniform Commercial Code

    • 606 Words
    • 3 Pages

    Harmonizing the conduct on what is considered the standard of a good business should be the goal for every business. For that reason a set of laws that provide legal rules and regulations that governs both the commercial or the business dealings and transactions is established under the Uniform Commercial Code. [1] Seeking uniformity amongst the states, the Uniform Commercial Code regulates the transfer or sale of personal property without dealing in real property. [2]…

    • 606 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Excersise 1

    • 492 Words
    • 2 Pages

    TCO 1—Given a simple business problem, design and desk-check a solution that is expressed in terms of pseudocode, flowchart, and/or input-process-output (IPO) diagrams.…

    • 492 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Amelia H. Boss, (n.d.) The Future of the Uniform Commercial Code Process in an Increasingly International World…

    • 848 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Progressive Reform Essay

    • 802 Words
    • 4 Pages

    era, a rise in the efforts from larger more powerful groups presented itself once again…

    • 802 Words
    • 4 Pages
    Good Essays