Preview

Three Basic Structures of Structured Programming

Better Essays
Open Document
Open Document
962 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Three Basic Structures of Structured Programming
INTRODUCTION
Structured programming is one of the several different ways in which a programming language can be constructed. "It was originally introduced as a means of getting away from the 'spaghetti' code that was used in the early days and to provide some means by which programmers could more easily follow code written by other programmers." (Hendren, 1998) Structured programming is a procedure-oriented method of designing and coding a program. At a low level, structured programs are composed of simple, hierarchical program flow structures. "These are regarded as single statements, and are the same time ways of combining simpler statements, which may be one of these structures, or primitive statements such as assignments or procedure calls." (Dijkstra, 1990) The three basic types of structure identified by Dijkstra were concatenation, selection, and repetition.

LITERATURE REVIEW Simple sequential code is most easily expressed by concatenation i.e. listing the pieces of code in the correct order. The main related question is how to indicate the boundary between statements. "Some languages just use the end of line but then usually require an explicit continuation symbol for statements too long to fit on a single line. Others languages use an explicit character such as, with some of these treating it as a separator and the rest treating it as the statement terminator." (Birrell, 1995) To turn a code sequence into a single entity, usually known as a compound statement, some languages use an explicit pair of brackets, such as {} or begin end, as a general form useable with any structure. Some languages have specific forms for each structure, such as if fi (or if end if) and while od (or while end while). Some languages have both general and specific forms, and others have neither. Because structures often end up deeply nested, specific keywords can be much easier to pair up than general pairs. "The classic selector is the conditional or if



References: Erosa, Hendren: (1998) Structured Programming, Language Design, and Persistence. E.W. Dijkstra: (1990) Structured Programming: Three Basic Structures of Structured Programming, Academic Press, London. Andrew D. Birrell: (1995) Programming with Threads, Research Report 35, Systems Research Center, Digital Equipment Corporation. William Agresti: (2000) Three Basic Structures of Structured Programming, Journal of Programming. M.A. Jackson: (2002) Basic controls and structures of Structured Programming, Journal of software development. Skinner Fream: (1992) Structured Programming, program flow structures, Yale University press

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

    Homework Unit 3

    • 354 Words
    • 2 Pages

    4. AND operator- combines more than one condition in a program. Makes a compunf Boolean operation.…

    • 354 Words
    • 2 Pages
    Satisfactory 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

    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

    In a declarative language, language is used that in its simplest form, just makes sense. There is no intricate code that is confusing. One example in SQL would be creating tables: CREATE TABLE Employee. The user can create a simple table without having to know the inner workings of how the table is actually created.…

    • 434 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    A declarative language describes what it wants to accomplish rather than focusing on how to achieve its goal. Writing a declarative program is not about specifying a sequence of statements to run one after another to create an application, but to write declarative statements that show a relationship between each other. The advantage of declarative programming languages is mainly two-fold. The programs are concise; this makes it easy even for non-programmers to obtain solutions. The second advantage of the declarative programming model is that repetitive imperative code that indicates how to solve things is provided in the computer system behind the scenes. Such code can be made highly efficient and can incorporate the best ideas from computing.…

    • 240 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    pt1420 exam review

    • 738 Words
    • 3 Pages

    What both translates and executes the instructions in a high level language program? What was the first programming language designed to perform complex math functions? Interpreter.Fortran…

    • 738 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Unit 5 PT1420

    • 959 Words
    • 7 Pages

    The AND operator takes two Boolean expressions as operands and creates a compound Boolean expression that is True only when both sub-expressions are true.…

    • 959 Words
    • 7 Pages
    Good Essays
  • Good Essays

    It210 Week 1 Dq#2

    • 329 Words
    • 2 Pages

    A well-structured design leads, in a natural way, to well-structured, easy-to-read code. In fact, one of the goals of structured programming is to create a program that is easy for programmers to read (and understand) and for users to run. The elements of a program that affect its readability and ease of use are grouped together under the general heading of programming style.…

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

    7. When a while loop or a for loop is coded inside another while loop or for loop, the inner loop is called a(n) nested loop..…

    • 719 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Intro the Programming

    • 386 Words
    • 5 Pages

    In general terms, a program that is broken into smaller units of code, such as methods, is known as a(n) _______.…

    • 386 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Reusability of Code

    • 511 Words
    • 3 Pages

    The earliest programming languages were procedural, meaning a program was made of one or more procedures. A procedure is simply a module or function that performs a specific task such as gathering input from the user, performing calculations, reading or writing files, displaying output, and so on. The programs that you have written so far have been procedural in nature. The steps a program must perform to reach the desired outcome. Procedure is an independent entity and a sequence of instructions that are grouped together. In procedural programming, a task is broken down into assortment of variables and subroutines. In OPP, a task is broken down into objects which summarize the data and execution. In a procedural approach, the entirely called variable is termed as a trait of the object. The idea is to encapsulate data and a…

    • 511 Words
    • 3 Pages
    Good Essays
  • Good Essays

    To be a good programmer you have to be organized and do a lot of thinking when it comes to structures and getting the correct…

    • 605 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Thought there are numerous computer programming languages in the world today, we will focus on the three basic fundamental types of computer programming languages.…

    • 1318 Words
    • 6 Pages
    Powerful Essays

Related Topics