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

    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

    There are three different code categories, Category I, II, and III. The first category I codes are the most numerous and each are five digits long all numeric. Each of them has a description of the procedure the code is for. For example 99204 is Officer or other outpatient visit for evaluation and management of a new patient. They are grouped into sections, but they can be used by any physician. For instance a regular physician may use a surgical code even though he is not a surgeon. Each of these codes are for procedures that are known working procedures. So chemotherapy is a known working procedure it would fall under category I, but a procedure that they are still testing for effectiveness would not be in this category. Category II codes are used to track performance measures for medical goes. For instance, when a patient comes in to lose weight or to quit smoking, then the category II code comes into use. Each of these codes has an alphabetic character as the last digit. Category III codes are used for temporary technology, services, and procedures, but if they are proven effective then it can turn into a permanent code. So these codes are only used for experimental procedures. When a new procedure is introduced, but not yet proven effective then it is assigned a temporary code. If the procedure is proven affective then it can switch and become a permanent code, and these also have an alphabetic character for the last digit. So an easy way to remember these categories would be:…

    • 293 Words
    • 2 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
  • 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
  • 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
  • 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
  • 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
  • Good Essays

    Array Structure Proposal

    • 574 Words
    • 3 Pages

    Write a 2- to 3-page proposal describing the purpose of that structure and write the pseudocode for that structure.…

    • 574 Words
    • 3 Pages
    Good 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

    The Universal commercial Code ( UCC) has been created to foster the free flow of commercial activity in the United States by making laws that are both reasonable and practical. Article 3 of this code deals with negotiable instruments. These contracts for payment serve as a substitute for actual money and make the flow of commerce move along at a faster rate.…

    • 642 Words
    • 3 Pages
    Good 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