Preview

Writing a Complete Program: Process, Logical Flow, and Modularization

Powerful Essays
Open Document
Open Document
1266 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Writing a Complete Program: Process, Logical Flow, and Modularization
AACS1074 Programming Concepts and Design I

Chapter 10: Writing a Complete Program

Chapter 10: Writing a Complete Program
Chapter Outline: 10.1 Programming Process 10.2 The Logical Flow Through a Program 10.3 Advantages of Modularization

10.1 •

Programming Process The programming process is broken 6 major steps: 1. 2. 3. 4. 5. 6. Understand the problem Plan the logic Code the program Translate the program into machine language Test the program Put the program into production

1. Understand the problem • Gain a clear understanding of what is required for the program. • State the problems clearly and unambiguously. E.g. inputs, outputs, and any additional requirements. • To satisfy the needs of the customer. 2. Plan the logic • Plans the logical steps to the program and decides what steps to include and how to order them. • There are two common design tools: flowchart and pseudocode. • The programmer breaks a large programming problem into reasonable units. • These reasonable units are typically called as modules, subroutines, procedures, functions or methods. • The process of breaking down a large program into modules is called modularization (refer to the section 10.3). 3. Code the program • Choose one or more programming languages to write the program after preparing the logical steps in the previous work. • Conduct a detailed planning before coding allows programmer to write programs that are less prompt to errors and changes. 4. Translate the program into machine language • Convert the program into machine language by using translator software for the particular programming language. • Translator software: compiler or interpreter. • Error messages are displayed as programming language statements written incorrectly.

Page 1 of 6

AACS1074 Programming Concepts and Design I

Chapter 10: Writing a Complete Program

5. Test the program • To ensure the program runs correctly and is error free. • Sample data need to be prepared. It includes

You May Also Find These Documents Helpful

  • Good Essays

    To fully test my program, test data needs to be created that can fully push the program to its boundaries or even further by causing a crash or error during execution. This will ensure that all errors and bugs are discovered so they can then be corrected.. The whole program will be played several times to make sure it works from the start to the end without any errors or bugs being encountered and to ensure it gives the correct outputs.…

    • 1040 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    Mat 540 Week 4 Paper

    • 1775 Words
    • 8 Pages

    * Provide a set of values that will test the normal operation of this program segment. Defend your choices.…

    • 1775 Words
    • 8 Pages
    Powerful 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

    a. Should “problem” = program assignment of some sort, than the first step would be to design the basis of the program in pseudocode to gain a clear picture of what kind of commands will work where, then move into flowcharting to start putting together the logic.…

    • 848 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    pt1420 exam review

    • 738 Words
    • 3 Pages

    1 - Design the Program2 - Write the Code3 - Correct Syntax Errors4 - Test the Executable Code…

    • 738 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Explain what is meant by a modular approach to programming. Why is this approach important?…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Explain what is meant by a modular approach to programming. Why is this approach important?…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Programming fundamentals

    • 299 Words
    • 2 Pages

    Designing and coding a procedure, module, or object can be complex and time consuming. Once these elements of a computer program are working correctly, it makes sense to use the code as often as practical. Code reusability has become a valuable part of adding efficiency to computer programming.…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    System Documentation

    • 4667 Words
    • 19 Pages

    9] Von MayrHauser, A. and Vans, A. M., Program comprehension during software maintenance and evolution. In IEEE Computer (Vol 28, No 8), pages 44-55, 1995…

    • 4667 Words
    • 19 Pages
    Powerful Essays
  • Good Essays

    algorithmsandflowcharts1

    • 975 Words
    • 14 Pages

    ALGORITHMS AND FLOWCHARTS ALGORITHMS AND FLOWCHARTS   A typical programming task can be divided into two phases: Problem solving phase  produce an ordered sequence of steps that describe solution of problem  this sequence of steps is called an algorithm  Implementation phase  implement language the program in some programming Steps in Problem Solving …

    • 975 Words
    • 14 Pages
    Good Essays
  • Powerful Essays

    Software Testing

    • 1835 Words
    • 8 Pages

    To test any program, we need to have a description of its expected behavior and a method of determining whether the observed behavior conforms to the expected behavior. For this we need a test oracle.…

    • 1835 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    Program Development

    • 4149 Words
    • 17 Pages

    Over two-thirds of your text is dedicated to explaining how to implement the steps in the copyrighted Program Development Cycle. Some instructors will introduce the steps to the overall cycle and then proceed through the book as they choose introducing a variety of techniques for implementing each step. Other will assign you to read this overview as a mean for introducing the cycle. As you read this chapter, remember there is much more detail in the text about how to actually implement each step. In 1985 Carpenter and Howe introduced the notion that there is a cycle to developing successful programs. This notion of a cycle has been developed by other authors including Farrell and Lundegren (1991), Rossman (1989), and others. During the development of a cycle for programming, the number of steps increased. We believe the Program Development Cycle included in your text cumulates the work in this area. A diagram of the steps included in program development and the order they occur are included in the 5th edition of the book on pages 98 and 99—the Program Development Cycle (a smaller version is included below). The cycle includes four major stages and nine specific steps. Before explaining the cycle, we want to comment on the actual nature of program development. Although the diagrammatic representation of the cycle gives the illusion that planning a program is a linear, sequential process, in reality it is an iterative, interactive process requiring continued recycling of these steps until an operational program plan is completed. Programs are developed through trial and error methods of implementation that continue until a suitable program design is developed. It is unusual for a perfect program to be planned and implemented. The notion that perfect planning must occur before implementing a program is a myth that is perpetuated in the literature. Peters and…

    • 4149 Words
    • 17 Pages
    Powerful Essays
  • Good Essays

    Engineering involves numerous paradigms and concepts that need to be used and applied at required places for making complete use of technology. One field of engineering that has gained significant importance in the last few years is software engineering. Due to the development and adaptation of different technologies in different areas and fields, different software is used for different purposes. And thus, different programming methodologies and concepts become an important part of software engineering. One important aspect of software engineering is declarative programming, which helps in describing the logic behind computation without even explaining the flow of the controls used in programming. The main phenomenon that drives such programming is logic and thus helps in the simplification of other programs for better computer programming and better output. We would thus discuss the major paradigms of declarative programming.…

    • 471 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    The main purpose for performing testing stage is to discover defects or the negative shade by testing each and every individual program components. Further, these components can be functions, objects or modules. On the due course of system testing, these components are fused together to create a complete system. At this level of stage, testing should preliminarily focus on establishing and even by showing that the system reaches its target of its functional requirements, and contrarily should not behave in an way not imagined or assumed. Test data are inputs which have been devised to test the system whereas test cases are inputs to test the system and the outputs are predicted from these inputs if the system operates according to its specification.…

    • 2709 Words
    • 11 Pages
    Powerful Essays
  • Good Essays

    A program may result from some problem, in this case problem means some task requiring a solution, or from a bright idea, or because it is a project which has been set for student. No matter what their first causes computer programs, aka software, and software systems, collections of softwares, have quite well-defined life cycles. The need for a program is recognised, the requirements are analysed, a possible solution is designed, the prototype is built and tested, and finally the program is put into use. Figure 1 shows the typical life-cycle for a computer program.…

    • 649 Words
    • 3 Pages
    Good Essays