The Program Development Cycle and Program Design Tools

Slides:



Advertisements
Similar presentations
Chapter 1 - VB 2008 by Schneider1 Chapter 1 - An Introduction to Computers and Problem Solving 1.1 An Introduction to Computers 1.2 Windows, Folders, and.
Advertisements

Introductory Computer Sciences
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
1.4 Programming Tools Flowcharts Pseudocode Hierarchy Chart
Chapter 1 - An Introduction to Computers and Problem Solving
Introduction to Programming
Chapter 2 - Problem Solving
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 2 - Problem Solving
زبانهای برنامه سازی برنامه سازی پیشرفته ارائه دهنده دکتر سيد امين حسيني E.mail: Home page:
INTRODUCTION TO PROGRAMMING
Chapter 1 - An Introduction to Computers and Problem Solving
Chapter 2- Visual Basic Schneider
Programming Tools Flowcharts Pseudocode Algorithm Chapter 2.
Introduction to Computing Dr. Nadeem A Khan. Lecture 4.
Introduction to Computing Dr. Nadeem A Khan. Lecture 4.
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
Developing logic (Examples on algorithm and flowchart)
Introduction to Computing Dr. Nadeem A Khan. Lecture 5.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Algorithm & Flowchart.
COS120 Software Development Using C++ AUBG Fall semester 2010
1 Chapter 1 - An Introduction to Computers and Problem Solving 1.1 An Introduction to Computers 1.2 Windows, Folders, and Files 1.3 Program Development.
IE 212: Computational Methods for Industrial Engineering
CS 0004 –Lecture 8 Jan 24, 2011 Roxana Gheorghiu.
U NDERSTANDING P ROBLEMS AND HOW TO S OLVE THEM BY USING C OMPUTERS.
Flow Charting. Goals Create Algorithms using Flow Charting procedures. Distinguish between Flow Charting and Pseudocode. Top-Down Design Bottom-up Design.
Pseudocode Demo for Payroll.c
Design the program Create a detailed description of program –Use charts or ordinary language (pseudocode) Identify algorithms needed –Algorithm: a step-by-step.
Chapter 1 - VB 2008 by Schneider1 Chapter 1 - An Introduction to Computers and Problem Solving 1.1 An Introduction to Computers 1.2 Windows, Folders, and.
PROBLEM SOLVING The first step in writing instructions to carry out a task is to determine what the output should be (What should the task produce?)
Chapter 2 - VB.NET by Schneider1 Chapter 2 - Problem Solving Program Development Cycle Programming Tools.
CSEB114: Principle of programming
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
Problem Solving and Program Design in C (5th Edition) by Jeri R. Hanly and Elliot B. Koffman Chapter 1 (Software Development Method) © CPCS
Flowcharts. Problem Solving Computer programs are written to solve problems or perform tasks Programmers translate the solutions or tasks into a language.
Programming at a high level. Developing a Computer Program Programmer  Writes program in source code (VB or other language) Compiler  Converts source.
Chapter 11 Chapter 1 - An Introduction to Computers and Problem Solving 1.1 An Introduction to Computers 1.2 Windows, Folders, and Files 1.3 Program Development.
Software Development Method Reference : Problem Solving & Program Design in C ; Jeri R.Hanly, Elliot B.Koffman.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
1 Program Planning and Design Important stages before actual program is written.
1 Programming Tools Flowcharts Pseudocode Hierarchy Chart Direction of Numbered NYC Streets Algorithm Class Average Algorithm.
Chapter 1 - VB 2008 by Schneider1 Chapter 1 - An Introduction to Computers and Problem Solving 1.1 An Introduction to Computers 1.2 Windows, Folders, and.
Fundamentals of Algorithms MCS - 2 Lecture # 5. Representation of Algorithms (continued) Flowcharts.
Introduction to Computing Dr. Nadeem A Khan. Lecture 2.
COP1220/CGS2423 Introduction to C++/ C for Engineers Professor: Dr. Miguel Alonso Jr. Fall 2008.
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.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Expressing Algorithms as Flowcharts and Pseudocode
FLOWCHARTING AND ALGORITHMS
MIT App Inventor Lesson 3 Algorithms Variables Procedures.
Program Program is a collection of instructions that will perform some task.
How Computers Solve Problems Computers also use Algorithms to solve problems, and change data into information Computers can only perform one simple step.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
ALMAJMA'AH UNIVERSITY College of Science and Humanitarians Studies in Alghat Management Information System Section (211 NMA course) Introduction to Programming.
Visual Basic Programming Introduction to Computers Programming.
Chapter 2- Visual Basic Schneider
Introduction to Computing
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
An Introduction to Visual Basic .NET and Program Design
Unit# 9: Computer Program Development
Chapter 2- Visual Basic Schneider
Chapter 1 - An Introduction to Computers and Problem Solving
Chapter 2- Visual Basic Schneider
Flowcharts and Pseudocode
Introduction to Programming
Miles to Kilometers problem
Presentation transcript:

The Program Development Cycle and Program Design Tools Problem Solving The Program Development Cycle and Program Design Tools

Performing a Task on the Computer Determine the output Identify the input Determine how to process the input to obtain the output Input Process Output

Program Development Cycle Analyze Define the problem Design Develop an algorithm Choose the interface Select the objects Code Test and Debug Complete the documentation You will spend much less time working on a program if you carefully devise a plan before actually writing the program. Analyze – Make sure you understand what the program should do and what the relationship between the input and output should be. Design – Find a logical sequence of steps that solve the problem and develop a logic plan using hierarchy charts, flowcharts or pseudocode. Choose the interface – Determine how the input will be obtained and how the output will be displayed. Also, create appropriate command buttons to allow the user to control the program. Code – Translate the algorithm into a programming language. Test and debug – locate and remove any errors from the program. Mention compiler errors, runtime errors and logic errors. Documentation – Documentation is intended to allow another person, or the programmer at a later date, to understand the program. Although documentation is listed as the last step in the program development cycle, it should take place as the program is being coded.

Program Design Tools Flowcharts – Graphically depict the logical steps to carry out a task and show how the steps relate to each other. Pseudocode – Uses English-like phrases with some Visual Basic terms to outline the task. Hierarchy charts – Show how the different parts of a program relate to each other.

Flowcharts Flowline Terminator Input/Output Processing Decision Connector Offpage connector Microsoft Word has the flowchart symbols as part of it’s AutoShape menu.

Miles to Kilometers Conversion Program Problem: Your summer surveying job requires you do calculations of distances in kilometers. All of your data is in miles. Write a program the performs the necessary conversion. Input: distance in miles Processing: convert miles to kilometers 1 mile = 1.609 kilometers Output: distance in kilometers

Hierarchy Chart Kilometers to miles conversion program Convert from miles to kilometers Display distance in kilometers Get distance in miles A hierarchy chart, sometimes called a top-down chart, shows the overall program structure. Hierarchy charts depict the organization of a program but omit the specific processing logic. They describe what each part, or module, of the program does and and they show how the modules relate to each other. The chart is read from top to bottom and from left to right. The main benefit of hierarchy charts is in the initial planning of a program. The major parts of the program are broken down into modules, and then each module is refined into more detailed plans using flowcharts or pseudocode.

Flowchart Start Get distance in miles Set kilometers = 1.609 * miles Display distance in kilometers End

Pseudocode Get distance in miles Convert the distance to kilometers The distance in kilometers is 1.609 the distance in miles Display the distance in kilometers

Direction of Numbered NYC Streets Algorithm Problem: Given a street number of a one-way street in New York, decide the direction of the street. (hint: even numbered streets run eastbound) Input: Street number Processing: Decide if the street number is divisible by 2 Output: “Eastbound” or “Westbound”

Hierarchy Chart Street direction program Decide whether street number is even or odd Display direction Get street number

Flowchart Start Get Street Number Is Street Number Even? Display No Yes Display Westbound Display Eastbound End

Pseudocode Get Street number If Street number is even Then Display Eastbound Else Display Westbound