Describe the Program Development Cycle. Program Development Cycle The program development cycle is a series of steps programmers use to build computer.

Slides:



Advertisements
Similar presentations
PROBLEM SOLVING TECHNIQUES
Advertisements

Chapter 1 - An Introduction to Computers and Problem Solving
Chapter 2 - Problem Solving
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 2 - Problem Solving
Chapter 2- Visual Basic Schneider
Program Flow Charting How to tackle the beginning stage a program design.
Chapter 2: Input, Processing, and Output
Programming Fundamentals (750113) Ch1. Problem Solving
COBOL for the 21 st Century Stern, Stern, Ley Chapter 1 INTRODUCTION TO STRUCTURED PROGRAM DESIGN IN COBOL.
Chapter 1 Program Design
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 3 Planning Your Solution
Review Algorithm Analysis Problem Solving Space Complexity
PRE-PROGRAMMING PHASE
Programming Logic and System Analysis
Fundamentals of C programming
Your Interactive Guide to the Digital World Discovering Computers 2012.
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
Computer Programming 12 Lesson 2 - Organizing the Problem By Dan Lunney.
Structured COBOL Programming, Stern & Stern, 9th edition
PROGRAMMING, ALGORITHMS AND FLOWCHARTS
Simple Program Design Third Edition A Step-by-Step Approach
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
PROGRAMMING LANGUAGES Prof. Lani Cantonjos. PROGRAM - set of step-by-step instructions that tells or directs the computer what to do. PROGRAMMING LANGUAGE.
1 The Software Development Process  Systems analysis  Systems design  Implementation  Testing  Documentation  Evaluation  Maintenance.
Designing and Debugging Batch and Interactive COBOL Programs Chapter 5.
The Software Development Life Cycle. Software Development SDLC The Software Development Life-Cycle Sometimes called the program development lifecycle.
Programming Concepts Chapter 3.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
Developing an Algorithm
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.
Problem Solving using the Science of Computing MSE 2400 EaLiCaRA Spring 2015 Dr. Tom Way.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
The Software Development Process
First Steps in Modularization. Simple Program Design, Fourth Edition Chapter 8 2 Objectives In this chapter you will be able to: Introduce modularization.
1 Program Planning and Design Important stages before actual program is written.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Chapter 2 - VB 2005 by Schneider- modified by S. Jane '081 Chapter 2 - Problem Solving 2.1 Program Development Cycle 2.2 Programming Tools.
1 The Software Development Process ► Systems analysis ► Systems design ► Implementation ► Testing ► Documentation ► Evaluation ► Maintenance.
Problem-solving with Computers. 2Outline  Computer System  5 Steps for producing a computer program  Structured program and programming  3 types of.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Fundamentals of Algorithms MCS - 2 Lecture # 3. Representation of Algorithms.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Introduction to Problem Solving Programming is a problem solving activity. When you write a program, you are actually writing an instruction for the computer.
 Problem Analysis  Coding  Debugging  Testing.
Algorithms and Flowcharts
ICS 3UI - Introduction to Computer Science
ALGORITHMS AND FLOWCHARTS
Chapter 2: Input, Processing, and Output
Chapter 2- Visual Basic Schneider
Algorithms An algorithm is a sequence of steps written in the form of English phrases that specific the tasks that are performed while solving the problem.It.
Introduction To Flowcharting
Introduction to Computer Programming
An Introduction to Visual Basic .NET and Program Design
ALGORITHMS AND FLOWCHARTS
Unit# 9: Computer Program Development
Problem Solving Techniques
Programming & languages
ALGORITHMS AND FLOWCHARTS
Chapter 2- Visual Basic Schneider
Chapter 1 Introduction(1.1)
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Chapter 2- Visual Basic Schneider
ICT Gaming Lesson 2.
Chapter 2: Input, Processing, and Output
Basic Concepts of Algorithm
WJEC GCSE Computer Science
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Presentation transcript:

Describe the Program Development Cycle

Program Development Cycle The program development cycle is a series of steps programmers use to build computer programs. 1.Analyze Requirements 2.Design Solution 3.Validate Design 4.Implement Design 5.Test Solution 6.Document Solution

Program Development Cycle The program development cycle is a continuous cycle which consists of six steps that form a loop. Step 2 Design Solution Step 3 Validate Design Step 4 Implement Design Step 5 Test Solution Step 6 Document Solution Step 1 Analyze Requirements

Step 1 – Analyze Requirements The analysis step consists of three major tasks: 1.Review the requirements 2.Meet with the systems analyst and users 3.Identify input, output, processing, and data components

Step 2 – Design Solution Designing a solution often involves developing a graphical or written description of the step-by-step procedures involved in solving the problem MAIN Initialization Declare Variables Print Report Headings Process Read a Record Calculate Regular Time pay Overtime Time pay Calculate Gross Pay Accumulate Totals Print Detail Line Wrap-up Calculate Averages Print Totals And Averages The hierarchy chart above is a tool the programmer uses during structured design. On the hierarchy chart, program modules are drawn as rectangles. All modules are subordinate to the main module.

Design Solution Using Control Structures A control structure, also known as a construct, depicts the logical order of program instructions in more detail. There are three basic control structures: 1.Sequence Control Structures 2.Selection Control Structures 3.Repetition Control Structures Action 1Action 3Action 2 Action 1Action 2 Condition TrueFalse Condition Action 1Action 2Action 3 Condition 1 Condition 2 Condition 3 Condition Action Condition False True False Case Control StructureDo-While Control StructureDo-Until Control Structure

Flowcharts allow you to plan and visualize the program development process in detail. Design Solution Using Flow Chart as a Design Tool

Step 3 – Validate Design Once programmers develop the solution algorithm using a program flowchart or pseudo code, they should validate or check the program design for accuracy to uncover logic errors. Two techniques for reviewing a solution algorithm are a desk check and a structured walkthrough. Desk checking involves five steps: 1.Develop various sets of test data (inputs) 2.Determine the expected result (output) for each set of data 3.Step through the solution algorithm using one set of test data and write down the actual result obtained (output) using the solution algorithm 4.Compare the expected result from Step 2 to the actual result from Step 3 5.Repeat Steps 3 and 4 for each set of test data

Step 4 – Implement Design Implementation of the design includes writing the actual code that translates the design into a program. As programmers enter a program, they should use comments to provide documentation for their program. In the example the Visual Basic code shown below, the lines in red are comment lines that help to document what is happening in the code that follows. Comments are very useful for troubleshooting a program and indicating what is supposed to be happening in a particular part of the program. Rem THESE FOLLOWING ROUTINES EXTRACT SELECTED DATA MATERIAL FOR Phrases & Sentences If Left$(KK.FileName, 1) <> "2" And KK.SpecialWindow = "Beginnings" And InStr(LineOriginal(RandomLine), " " + KK.CharacterString) = 0 Then ShowOriginal If Left$(KK.FileName, 1) <> "2" And KK.SpecialWindow = "Endings" And InStr(LineOriginal(RandomLine), KK.CharacterString + " ") = 0 Then ShowOriginal If Left$(KK.FileName, 1) <> "2" And KK.SpecialWindow = "Selected" And InStr(LineOriginal(RandomLine), KK.CharacterString) = 0 Then ShowOriginal If Left$(KK.FileName, 1) <> "2" And KK.SpecialWindow = "Double" Then N = Len(LineOriginal(RandomLine)): DoubleFound = 0 For x = 1 To N If Mid$(LineOriginal(RandomLine), x, 1) = Mid$(LineOriginal(RandomLine), x + 1, 1) Then DoubleFound = 1: Exit For Next x If DoubleFound = 0 Then ShowOriginal End If Rem THESE FOLLOWING ROUTINES EXTRACT SELECTED DATA MATERIAL FOR Words While Left$(KK.FileName, 1) = "2" And Len(Words) < 32: ' this sets line for words RandomLine = Int(LastLineCount * Rnd(1) + 1)

Step 5 – Test Solution Once a programmer codes and enters the program, the next step is to test it. Thorough testing is extremely important. After developers place the program into production, many users rely on the program and its output to support their daily activities. Errors uncovered during this step are usually syntax errors or logic errors. Syntax errors are errors in using the code or program language that the computer doesn’t understand. Logic errors are errors such as using a formula that is not correct or not sequencing the program in correct order.

Step 6 – Document Solution In documenting the solution, the programmer (1) reviews the program code, and (2) reviews all the documentation before turning everything over to the systems analyst. In reviewing the code, the programmer removes any “dead code.” This is code with instructions that the program never executes. This might consist of a section that the programmer wrote and then later replaced with a routine that works more efficiently. The programmer also makes sure there is adequate documentation in the program so that if changes need to be made in the program later on the new programmer will be able to easily identify what each section of the program is supposed to do and can make changes or corrections in the program very easily without having to spend a lot of time decoding.

Steps in the Program Development Cycle