Programming Lifecycle

Slides:



Advertisements
Similar presentations
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Advertisements

Computers: Tools for an Information Age
Program Flow Charting How to tackle the beginning stage a program design.
Program Flow Charting How to tackle the beginning stage a program design.
Chapter 2: Input, Processing, and Output
Programming Fundamentals (750113) Ch1. Problem Solving
Lecture Notes 8/30/05 Program Design & Intro to Algorithms.
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
PRE-PROGRAMMING PHASE
Programming Concepts and Languages Chapter 12 – Computers: Understanding Technology, 3 rd edition 1November
Structured COBOL Programming, Stern & Stern, 9th edition
CSC141 Introduction to Computer Programming
CSC-115 Introduction to Computer Programming
Computer Science 101 Introduction to Programming.
PROGRAMMING LANGUAGES Prof. Lani Cantonjos. PROGRAM - set of step-by-step instructions that tells or directs the computer what to do. PROGRAMMING LANGUAGE.
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
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.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
Programming at a high level. Developing a Computer Program Programmer  Writes program in source code (VB or other language) Compiler  Converts source.
The Programming Process Define the problem* Make or buy software? Design the program * Code (write) the program Test (debug) the program Document the.
ProgrammingLanguages Programming Languages Language Definition, Translation and Design.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
CHAPTER 1 INTRODUCTION 1 st semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
1 Program Planning and Design Important stages before actual program is written.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Program Development C# Programming January 30, 2007 Professor J. Sciame.
Program Development Cycle
Lesson - 2. Introduction When we make a program we must follow some steps, called Programming Development Life Cycle (PDLC). Programming steps are five:
The Art of Programming. The process of breaking problems down into smaller, manageable parts By breaking the problem down, each part becomes more specific.
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
CSI 1340 Introduction to Computer Science II Chapter 1 Software Engineering Principles.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
The Hashemite University Computer Engineering Department
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.
Introduction to Computer Programming using Fortran 77.
PROGRAMMING. Computer Programs  A series of instructions to the computer  pre-written/packaged/off-the-shelf, or  custom made  There are 6 steps to.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
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.
Lecture 3 Computer Programming -1-. The main steps of program development to solve the problem: 1- problem definition : The problem must be defined into.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
PROGRAMMING LIFE CYCLE. GROUP NAME:  RABIATUL ADAWIYAH BINTI MOHD NOOR 18ENS14F2001  KHAIRULAMIN ZAQUAN BIN AZHAM FUAD 18DNS14F2019  MUHAMMAD NAIM.
Chapter 1 Introduction 2nd Semester H
ICS 3UI - Introduction to Computer Science
Introduction to Computers and C++ Programming
Programming Languages
CSCI-235 Micro-Computer Applications
Computer Programming.
Chapter 2: Input, Processing, and Output
The Software Development Cycle
Software Design and Development
Programming Problem steps must be able to be fully & unambiguously described Problem types; Can be clearly described Cannot be clearly described (e.g.
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.
Programming Concepts and Languages
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Chapter 1 Introduction(1.1)
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
The Programming Process
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
ICT Gaming Lesson 2.
Chapter 1 Introduction to Programming
CHAPTER 6 Testing and Debugging.
Presentation transcript:

Programming Lifecycle Chapter 1 (Cont..) Programming Lifecycle CSC425 - Introduction To Computer Programming

OBJECTIVES  Introduce the general step programmers go through to develop computer programs and software  Explain the phases in the system development life cycle. CSC425 - Introduction To Computer Programming

Programming Life Cycle D o c ume n t a I Problem Analysis Programs Modelling Coding Programs Testing and Debugging Maintenance CSC425 - Introduction To Computer Programming

Step 1 : Problem Analysis  Defining the problem  Identify : 1. Input (given data) 2. Output (the result) 3. Process - relation between input and output - using formula Input Process Output CSC425 - Introduction To Computer Programming

Example Problem 1 Write a program that can input 3 integer number from user. Find the average for the number. Display all the numbers and the average Problem analysis Input : 3 numbers Process : 1. total up 3 numbers 2. Divide the number by 3 Output : 3 numbers and the average CSC425 - Introduction To Computer Programming

Step 2 : Programs Modeling  Planning the solution to a problem  Using algorithm, flowchart or pseudocode [Refer Problem 1] 1. Set sum = 0, avg = 0 2. Read 3 integer number 3. Total up 3 integer number sum = a+b+c 4. Find the average avg = sum / 3 5. Display 3 integer number and average algorithm CSC425 - Introduction To Computer Programming

[Refer Problem 1] Pseudocode Flowchart start sum =0 , avg = 0 START Read a, b, c sum = a+b+c avg = sum / 3 Display a,b,c Display avg End START INPUT a,b,c sum = a+b+c avg = sum / 3 PRINT a,b,c PRINT avg END Pseudocode Flowchart CSC425 - Introduction To Computer Programming

Step 3 : Coding and programs source code  Express solution in a programming language  Translate the logic from the flowchart or pseudocode.  There are many programming languages : BASIC, COBOL, Pascal, Fortran, C, C++, Java etc  Each language has it’s own syntax (rules of language) CSC425 - Introduction To Computer Programming

[Refer problem 1] Coding in C++ Language Output of the program CSC425 - Introduction To Computer Programming

Step 4 : Testing and Debugging  Trace error either syntax or logic error Testing  running the program with a set of data Debugging  Trace and fixed the error CSC425 - Introduction To Computer Programming

Occur during program execution Detected by compiler Run-time error Occur during program execution Detected by compiler Occur because of logic error or memory leak Syntax error Error in the structure or spelling of a statement Detected by the compiler during compilation of the program Example: Missing semicolon, quote CSC425 - Introduction To Computer Programming

Produce undesired result/output Cannot be detected by compiler Logic error Unexpected/unintentional errors resulted from flaw in the program’s logic Produce undesired result/output Cannot be detected by compiler Compare the result with manual process CSC425 - Introduction To Computer Programming

Documentation 1. Description of the program  An ongoing process  Written detailed description of the program cycle and specific facts about the program  Documentation materials include : 1. Description of the program 2. Logic tools : flowcharts, pseudocode 3. Data- record descriptions 4. Program listing 5. Testing results 6. Comments CSC425 - Introduction To Computer Programming

Why programmers put comment? To explain/describe the program/function/statement To help other programmers understand the program/function/statement 2 types of comments Line comment: single line comment Block comment: multiple line comment Syntax comment is differ to certain languages CSC425 - Introduction To Computer Programming

Step 5 : Maintenance  Modification made to the finished program  Software to meet current requirement  Need to refer the previous documentation CSC425 - Introduction To Computer Programming

A good program must have Accuracy Reliability Efficiency A good program must have Maintainability Readability Usability CSC425 - Introduction To Computer Programming