Preview

Chapter 4 – Design Tools: Jackson Structured Programming (JSP)

Better Essays
Open Document
Open Document
2133 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Chapter 4 – Design Tools: Jackson Structured Programming (JSP)
4.1 Three Structured Constructs All programs can be constructed using only the three basic constructs. It is the concept of structured programming that a program should be developed using only these three basic constructs. It is not wrong to use the GOTO structure but it is discouraged, because programs with the GOTO structure are often classified as unstructured. The three basic constructs are Sequence Selection Iteration/Repetition 4.1.1 Sequence Construct In a sequence construct, the way the statements are placed implies the order in which the computer will execute the statements. The computer will interpret the statements in a left to right, top to bottom fashion. Consider the following Calculate-Average Module DO Get Two Numbers Calculate Sum Determine Average Print Average ENDDO The sequence for the above module is straightforward. You get the two numbers, calculate the sum, determine the average and print out the result. If the statements are not in that sequence, the result obtained will not be the answer intended Figure 4-1 Simple sequence The Calculate Average module is not a separate module away from the rest of the four modules below it. But it actually contains all the four modules. Each process (a rectangle) represents a component with their function/action stated in the function list. If the component does not contain or form other constructs (i.e. other sequences, selections or iterations), it is regarded as an elementary component. The diagram should be interpreted in a top-down, left to right manner. The Calculate-Average Module has four elementary components. Each time it is activated, it will activate the Input Number module, Calculate Sum module, Determine Average module and the Print Result module in that order. Consider another example Figure 4-2 Complex sequence The sequence of activation for the above will be A, B, E, F, C, D, G, I, J, H 4.1.2 Selection Construct The selection construct consists of condition(s) and one or

You May Also Find These Documents Helpful

  • Satisfactory Essays

    so lines 10 and 11 keep track of the information we need to compute the average at the end.…

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

    unit 8 homework

    • 793 Words
    • 5 Pages

    4. Design a loop that asks the user to enter a number. The loop should iterate 10 times and keep a running total of the numbers entered.…

    • 793 Words
    • 5 Pages
    Good Essays
  • Good Essays

    pt1420 exam review

    • 738 Words
    • 3 Pages

    What is a set of statements that execute in the order that they appear? Sequence Structure…

    • 738 Words
    • 3 Pages
    Good Essays
  • Better Essays

    A1. Bill Bailey You will want to read through the theories of motivation found in chapter 8 of your textbook and select the theory that you believe would be most appropriate for Bill Bailey to use, taking into consideration his position on the merger. Now you have the opportunity to show that you can take a theory and show, via discussion, how one would implement each of the components of a theory to successfully utilize the theory in real life. To do this you will need to discuss specifically what Bill might do to implement each of the parts of the theory.…

    • 854 Words
    • 4 Pages
    Better Essays
  • Good Essays

    Jackson DBQ

    • 873 Words
    • 1 Page

    Democrats, to better represent the people and bring a new ideal to the political system. This new…

    • 873 Words
    • 1 Page
    Good Essays
  • Good Essays

    Hcs/438 Dq's

    • 1323 Words
    • 6 Pages

    DQ1: The mean is a computation of numbers. To find the mean of a series of numbers we first add…

    • 1323 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Jackson DBQ

    • 2669 Words
    • 19 Pages

    2. Quickly skim the 11 documents to get a sense of what they are about.…

    • 2669 Words
    • 19 Pages
    Good Essays
  • Good Essays

    Jacksonian Dbq

    • 780 Words
    • 4 Pages

    Jacksonian Democrats viewed themselves as guardians of the United States Constitution, political democracy, individual liberty and equality of economic opportunity. However their view of themselves wasn’t how they actually were. While they did feel strongly about the common man and the constitution they were also concerned with their own interests which are shown in the Indian Removal. The Jacksonians were overall what they thought of themselves to be but they did have some other intentions.…

    • 780 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Jackson Dbq

    • 306 Words
    • 2 Pages

    Jackson was perceived as a “Man of the people”, despite wealth and slaves, his backwoods upbringing, military hero, lack of education made the people feel like he was one of them. He took that role to heart and tried to keep the government’s role out of the economy and did not want a big central government. In doing so he created a division between rural farmers and the industrialist. One of issues Jackson created was the Tariff of abominations, a 1828 protective tariff or tax on imports. This angered many southern free traders which increased their cost on goods required to run their business and plantations while they received less on the goods they were producing for export. John Calhoun had by 1832 resigned as Vice President and returned to South Carolina. He was appointed to the U.S. Senate by the States legislature. Calhoun authored two documents to undermine the Abomination Tariff that would eventually be referred to as the Nullification Act. He insisted that since the states had created the Federal Government by ratifying the Constitution states were sovereign and had every right to declare any Federal law the disagreed with null and void. Another issue Jackson encountered was the Second Bank. He strongly felt the banks were a means of corruption. He felt banks were unconstitutional and violated the rights of the people. The “second-party system” was the rivalry between Whigs and Democrats. The Whigs included industrialists, merchants, and farmers who favored stimulus to commerce. Democrats included smaller farmers, wage workers, and declining gentry—individuals left behind by the new market economy.…

    • 306 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Jackson Dbq

    • 767 Words
    • 4 Pages

    Jacksonians proved to be both guardians and violators of the Constitution, political democracy, individual liberty, and economic opportunity.…

    • 767 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Jacksonian Dbq

    • 1652 Words
    • 7 Pages

    The Age of Jackson, from the 1820's to the 1830's, was a period of American history full of contradictions, especially in regard to democracy. The period saw an increase in voter participation, nominating committees replaced caucuses, and electors began to be popularly elected. Yet, all of these voting changes affected only a minority of the American people: White, Anglo-Saxon males. So, though one can easily tell that White, Anglo-Saxon males were gaining…

    • 1652 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    Jackson Dbq

    • 1661 Words
    • 7 Pages

    The generalization that, "The decision of the Jackson administration to remove the Cherokee Indians to lands west of the Mississippi River in the 1830s was more a reformulation of the national policy that had been in effect since the 1790s than a change in that policy," is valid. Every since the American people arrived at the New World they have continually driven the Native Americans out of their native lands. Many people wanted to contribute to this removal of the Cherokees and their society. Knox proposed a "civilization" of the Indians. President Monroe continued Knox's plan by developing ways to rid of the Indians, claiming it would be beneficial to all. Andrew Jackson ultimately fulfilled the plan.…

    • 1661 Words
    • 7 Pages
    Good Essays
  • Better Essays

    JPL Foundation Case Study

    • 1478 Words
    • 6 Pages

    Many adult educational programs exist for the underserved populations, the programs offer an extensive variety of educational opportunities as well as personal benefits for the individuals who utilize the programs. Additionally the programs strives to enhance educational opportunities for the adults who may exist with challenges in reference to his or her education level, income level, possesses a disability status, or resides in an unfavorable geographic location. It is not uncommon for foundations to primarily exist from the support of grants and private contributions. The JPL Foundation, Inc. is not an exception to the previous statement. The following paragraphs will serve as documentation in reference to providing a background of The JPL Foundation, Inc. to include the organizations history, structure. Additionally, the following paragraphs will serve as documentation in reference to key characteristics of the program. The key characteristics will include the organizations primary activities and services. The latter paragraphs will serve as documentation in reference to the…

    • 1478 Words
    • 6 Pages
    Better Essays
  • Good Essays

    4. Find at least one use of parallel structure in the Declaration. What key terms are repeated in identical or equivalent constructions, and to what effect?…

    • 695 Words
    • 3 Pages
    Good Essays