1 / 10

Software Life Cycle and Program Development Techniques

Learn about the software life cycle and the techniques for programming and problem solving. Understand the steps involved in program development, from problem analysis and specification to algorithm design, coding, execution, testing, and maintenance.

rdanforth
Download Presentation

Software Life Cycle and Program Development Techniques

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS 160Lecture 6 Martin van Bommel

  2. Program Development • Software Engineering • study and use of techniques for programming and problem solving • Software Life Cycle • software development goes through cycles, where begins again when software outdated

  3. Software Life Cycle 1. Specify the problem requirements. 2. Analyze the problem. 3. Design the algorithm to solve the problem. 4. Implement the program. 5. Test and verify the completed program. 6. Maintain and update the program.

  4. Problem Analysis and Spec. • Determine its input • what information is given • what items are important to solving problem • Determine its output • what information must be produced to solve the problem • Determine scope of the problem • questions, questions, and more questions

  5. Algorithm Design • Procedure to convert inputs to outputs • Uses step-by-step process • Top-down step-wise refinement • Produce pseudo-code or flowchart

  6. Algorithm • Three basic forms of control 1. Sequential - one step after another 2. Selection - choose one of many alternatives 3. Repetition - one or more steps repeatedly

  7. Program Coding • Program should be correct, readable, and understandable • Simple and clear - no tricks • Modular - program and test subtasks of overall problem separately • Conforms to syntax of language

  8. Program Formatting • Spaces between items in statements • between variables and operators • Blank lines between major sections • each subpart separated from others • Good indentation • indent statements in loops • Meaningful variable names • Distance and Time instead of d and t

  9. Execution and Testing • Test each unit separately before combining • Use expected data with known result • Use unexpected data to check for problems • Validation - tested with several sets of test data, but never can tell if absolutely valid.

  10. Program Maintenance • Programs survive for many years • New features must be added • Laws, rules, and procedures change • Hardware changes • e.g. Year 2000 problem

More Related