Software Development Problem Analysis and Specification Design Implementation (Coding) Testing, Execution and Debugging Maintenance.

Slides:



Advertisements
Similar presentations
SOFTWARE TESTING. INTRODUCTION  Software Testing is the process of executing a program or system with the intent of finding errors.  It involves any.
Advertisements

Software Failure: Reasons Incorrect, missing, impossible requirements * Requirement validation. Incorrect specification * Specification verification. Faulty.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
An Introduction to Software Engineering CSCI 3333 Data Structures.
Ch. 1: Software Development (Read) 5 Phases of Software Life Cycle: Problem Analysis and Specification Design Implementation (Coding) Testing, Execution.
Programming Fundamentals (750113) Ch1. Problem Solving
© 2006 Pearson Addison-Wesley. All rights reserved2-1 Chapter 2 Principles of Programming & Software Engineering.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
1 Chapter 2 Problem Solving Techniques INTRODUCTION 2.2 PROBLEM SOLVING 2.3 USING COMPUTERS IN PROBLEM SOLVING : THE SOFTWARE DEVELOPMENT METHOD.
BPC.1 Basic Programming Concepts
BY RAJESWARI S SOFTWARE TESTING. INTRODUCTION Software testing is the process of testing the software product. Effective software testing will contribute.
Data Structures and Programming.  John Edgar2.
Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights reserved Software.
1 Programming and Problem Solving — Software Engineering (Read Chap. 2)
Programming and Problem Solving — Software Engineering (Read Chap. 2) 1.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Testing. Definition From the dictionary- the means by which the presence, quality, or genuineness of anything is determined; a means of trial. For software.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Developing a Program.
An Introduction to Software Engineering CSCI 3033 Data Structures.
CMSC 345 Fall 2000 Unit Testing. The testing process.
CS 360 Lecture 3.  The software process is a structured set of activities required to develop a software system.  Fundamental Assumption:  Good software.
Programming Lifecycle
COP 3530 PROGRAM, FILE & DATA STRUCTURES Syllabus Syllabus Lab Information Lab Information Overrides Overrides Questions? Questions?
Software Development Cycle What is Software? Instructions (computer programs) that when executed provide desired function and performance Data structures.
Testing Methods Carl Smith National Certificate Year 2 – Unit 4.
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Fundamental Programming: Fundamental Programming K.Chinnasarn, Ph.D.
Introduction to Problem Solving. Steps in Programming A Very Simplified Picture –Problem Definition & Analysis – High Level Strategy for a solution –Arriving.
CS Data Structures I Chapter 2 Principles of Programming & Software Engineering.
1 Ch. 1: Software Development (Read) 5 Phases of Software Life Cycle: Problem Analysis and Specification Design Implementation (Coding) Testing, Execution.
1 Program Planning and Design Important stages before actual program is written.
© 2006 Pearson Addison-Wesley. All rights reserved2-1 Chapter 2 Principles of Programming & Software Engineering.
© 2006 Pearson Addison-Wesley. All rights reserved 2-1 Chapter 2 Principles of Programming & Software Engineering.
Software Engineering. Acknowledgement Charles Moen Sharon White Bun Yue.
Intermediate 2 Computing Unit 2 - Software Development.
Software Engineering Saeed Akhtar The University of Lahore.
Software Engineering Issues Software Engineering Concepts System Specifications Procedural Design Object-Oriented Design System Testing.
Data Structure Introduction Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2010.
CSI 1340 Introduction to Computer Science II Chapter 1 Software Engineering Principles.
SOFTWARE TESTING. Introduction Software Testing is the process of executing a program or system with the intent of finding errors. It involves any activity.
The Hashemite University Computer Engineering Department
 Software Testing Software Testing  Characteristics of Testable Software Characteristics of Testable Software  A Testing Life Cycle A Testing Life.
Software Development Process CS 360 Lecture 3. Software Process The software process is a structured set of activities required to develop a software.
CMPSC 16 Problem Solving with Computers I Spring 2014 Instructor: Tevfik Bultan Lecture 4: Introduction to C: Control Flow.
1 Phase Testing. Janice Regan, For each group of units Overview of Implementation phase Create Class Skeletons Define Implementation Plan (+ determine.
CMSC 2021 Software Development. CMSC 2022 Software Development Life Cycle Five phases: –Analysis –Design –Implementation –Testing –Maintenance.
Chapter 1 Software Development Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
SOFTWARE TESTING LECTURE 9. OBSERVATIONS ABOUT TESTING “ Testing is the process of executing a program with the intention of finding errors. ” – Myers.
Testing Integral part of the software development process.
Software Testing Strategies for building test group
Software Testing.
ICS 3UI - Introduction to Computer Science
Software Testing.
Verification and Testing
SDC – SDLC integration.
Lecture 2 Introduction to Programming
Programming Problem steps must be able to be fully & unambiguously described Problem types; Can be clearly described Cannot be clearly described (e.g.
Some Simple Definitions for Testing
Understand the Programming Process
Unit# 9: Computer Program Development
Problem Solving Techniques
PROGRAMMING METHODOLOGY
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Chapter 2- Visual Basic Schneider
Understand the Programming Process
Test Case Test case Describes an input Description and an expected output Description. Test case ID Section 1: Before execution Section 2: After execution.
Software Development Chapter 1.
Software Testing Strategies
Presentation transcript:

Software Development Problem Analysis and Specification Design Implementation (Coding) Testing, Execution and Debugging Maintenance

Problem Analysis and Specification Computer Science programming assignment - specific statement of problem quantitative description clearly defined requirements for needed: input, output, calculations, test data Computer Science programming assignment - specific statement of problem quantitative description clearly defined requirements for needed: input, output, calculations, test data

Problem Analysis and Specification “Real World” request - general statement of problem qualitative (“more accurate”) not quantitative precision missing for input, output, processes “Real World” request - general statement of problem qualitative (“more accurate”) not quantitative precision missing for input, output, processes

Statement of specifications  the formal statement of the problem’s requirements  the major reference document  a benchmark used to evaluate the final system

Design CS courses –small systems few hundred lines of code simple, straightforward self-contained “Real” world –large systems thousands of lines of code complex many components

Object-centered design 1. Identify the objects in the problem's specification. 2. Identify the operations needed to solve the problem. 3. Arrange the operations in a sequence of steps, called an algorithm, which, when applied to the objects, will solve the problem.

Algorithm May be written in pseudo-code Characteristics of steps (instructions), see pg 9: –Definite and unambiguous –Simple –Finite Difference between correctness and efficiency, see pp 7-8 –O(n) — grows linearly with size (n) of the input –O(1) — is constant, i.e. independent of size of input

Algorithm (Structured Version) / * Algorithm to read and count several triples of distinct numbers and print the largest number in each triple. * / 1. Initialize count to Read the first triple of numbers x, y, z. 3. While x is not the end-of-data-flag do the following: a. Increment count by 1. b. If x > y and x > z then display x. Else if y > x and y > z then display y Else display z. c. Read the next triple x, y, z. 4. Display count.

Implementation Select language of implementation Encode the design Verify Integration –combining program units into a complete software system. Insure Quality –programs must be correct, readable, and understandable –well-structured, documented, stylistic (see guidelines on pp )

Testing, Execution, and Debugging –Validation: "Are we building the right product?" check that documents, program modules, etc. match the customer's requirements. –Verification: : "Are we building the product right?" check that products are correct, complete, consistent with each other and with those of the preceding phases.

Errors may occur in any of the phases –Specifications don't accurately reflect given information or the user's needs/requests –Logic errors in algorithms –Incorrect coding or integration –Failure to handle boundary data or test values

Different kinds of tests required –Unit tests: Each individual program unit works? –Program components tested in isolation –Integration tests: Units combined correctly? –Component interface and information flow tested –System tests: Overall system works correctly?

The "V" Life Cycle Model

Unit testing –probably the most rigorous and time-intenstive –surely the most fundamental and important –kinds of errors tested — syntax — linking — run-time — logical

Black box or functional test Outputs produced for various inputs are checked for correctness without considering the structure of the module itself. ( Program unit is viewed as a black box that accepts inputs and produces outputs, but the inner workings of the box are not visible.

White box or structural test Performance is tested by examining code’s internal structure. Test data is carefully selected so that specific parts of the program unit are exercised.

Example: Binary search (pp )

Black box test Use n = 7 and sample array a of integers

Boundary Testing

Techniques to locate error

White-box test

Maintenance –Large % of computer center budgets –Large % of programmer's time –Largest % of software development cost Why? –Includes modifications and enhancements –Poor structure, poor documentation, poor style less likely to catch bugs before release make fixing of bugs difficult and time-consuming impede implementation of enhancements