Problem Solving and Program Design in C (5th Edition) by Jeri R. Hanly and Elliot B. Koffman Chapter 1 (Software Development Method) © CPCS 202 12-10-1429.

Slides:



Advertisements
Similar presentations
Write a program step by step. Step 1: Problem definition. Given the coordinate of two points in 2-D space, compute and print their straight distance.
Advertisements

Introduction to Programming in C++ John Galletly.
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.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
Problem Solving and Program Design in C (5th Edition) by Jeri R. Hanly and Elliot B. Koffman Chapter 4 (Conditional Statements) © CPCS
© 2010 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 11: Structure and Union Types Problem Solving & Program Design.
CS 201 Overview of Computers & Programming Debzani Deb.
The Program Development Cycle and Program Design Tools
CS211 Data Structures Sami Rollins Fall 2004.
Introduction to C++ Programming CS 117 Section 2 and KNET Sections Spring 2001 MWF 1:40-2:30.
1 ICS103 Programming in C Lecture 2: Introduction to C (1)
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
1 Chapter Two Introduction to the Programming Language C.
© 2012 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 2: Overview of C Problem Solving & Program Design in C Seventh.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages Updated by: Dr\Ali-Alnajjar.
COS120 Software Development Using C++ AUBG Fall semester 2010
Software Engineering 1 (Chap. 1) Object-Centered Design.
The Art of Programming Top-Down Design. The Art of Problem Solving The art of problem solving is the transformation of an English description of a problem.
CS 115 Chapter 1 Overview of Programming and Problem Solving.
Computer Programming and Basic Software Engineering 4. Basic Software Engineering 1 Writing a Good Program 4. Basic Software Engineering.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
COS120 Software Development Using C++ AUBG Fall semester 2010 Ref book: Problem Solving, Abstraction and Design Using C++ Authors: Frank Friedman, Elliot.
INTRODUCTION TO C PROGRAMMING LANGUAGE Computer Programming Asst. Prof. Dr. Choopan Rattanapoka and Asst. Prof. Dr. Suphot Chunwiphat.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Problem Solving and Program Design in C (5th Edition) by Jeri R. Hanly and Elliot B. Koffman CPCS 202 Chapter 2 – Input/Output
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
Software Life Cycle Requirements and problem analysis. –What exactly is this system supposed to do? Design –How will the system solve the problem? Coding.
Problem Solving and Program Design in C (5th Edition) by Jeri R. Hanly and Elliot B. Koffman CP 202 Chapter 3 Slides By Dr. Daniyal Alghazzawi.
CSEB114: Principle of programming
Python – Part 1 Python Programming Language 1. What is Python? High-level language Interpreted – easy to test and use interactively Object-oriented Open-source.
1 Special Programming Workshop CSIT-120 Fall 2000 Workshop Targets Solving problems on computer Programming in C++ Writing and Running Programs Programming.
The Development Process Problem Solving. Problem Solving - Dr. Struble 2 What Is Asked of Computer Programmers? Input Transformation Output Write a computer.
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.
The Programming Process Define the problem* Make or buy software? Design the program * Code (write) the program Test (debug) the program Document the.
Problem Solving and Program Design in C (5th Edition) by Jeri R. Hanly and Elliot B. Koffman Chapter 6 (Pointers) © CPCS
Algorithms  Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
Software Development Method Reference : Problem Solving & Program Design in C ; Jeri R.Hanly, Elliot B.Koffman.
1 8/31/05CS150 Introduction to Computer Science 1 Hello World!
Chapter 1 : Overview of Computer and Programming By Suraya Alias
Agenda Computer Languages How to Write a Simple C Program
The Hashemite University Computer Engineering Department
Chapter – 8 Software Tools.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
Chapter 1: Introduction to Computers and Programming.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Problem Solving and Program Design in C (5th Edition) by Jeri R. Hanly and Elliot B. Koffman Chapter 3 (Functions) © CPCS /1433 – Term 1.
BASIC PROGRAMMING C SCP1103 (02)
Introduction to Computers and C++ Programming
Chapter 1: An Overview of Computers and Programming Languages
BASIC PROGRAMMING C SCP1103 (02)
Chapter 1: An Overview of Computers and Programming Languages
Algorithms Problem: Write pseudocode for a program that keeps asking the user to input integers until the user enters zero, and then determines and outputs.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture2.
Compiled and ready to run Memory Stack /*
CC213 Programming Applications
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
Understanding Problems and how to Solve them by using Computers
Chapter 2: Overview of C Problem Solving and Program Design in C 5th Edition by Jeri R. Hanly and Elliot B. Koffman.
Chapter 9: Strings Problem Solving and Program Design in C 5th Edition
ICS103 Programming in C 1: Overview of Computers And Programming
Miles to Kilometers problem
Presentation transcript:

Problem Solving and Program Design in C (5th Edition) by Jeri R. Hanly and Elliot B. Koffman Chapter 1 (Software Development Method) © CPCS

CHAPTER 1 1. The Software Development Method 2. Exercise 3. Terms to Remember 2 #  column shows the topics index.  column shows the programs index.

The Software Development Method A. Introduction  You need to be a problem solver  A good problem solver  a good programmer  Programmers use the Software Development Method (method to develop software)  This is what you will learn in this course. B. Prototype 3 1 ImplementationProblemAnalysis Design / Algorithm TestingMaintenance Outline

The Software Development Method C. Example Problem: “define the problem you are trying to solve” Your summer surveying job requires you to study some maps that give distances in kilometers and some that use miles. You and your coworkers prefer to deal in metric measurements. Write a program that performs the necessary conversion. Implementation Problem Analysis Design / Algorithm TestingMaintenance

The Software Development Method C. Example 2. Analysis (تحليل): “define the inputs and the outputs of the program” 1. Problem Input: miles 2. Problem Output: kilometers 3. Relevant Formula: 1 mile = kilometers 5 1 ImplementationProblem Analysis Design / Algorithm TestingMaintenance

The Software Development Method C. Example 3. Design / Algorithm: “steps to solve the problem and could be written any way, but they have to be understandable” 1. Get the distance in miles from the user. 2. Convert the distance to kilometers. (1 miles = kilometer) 3. Display the distance in kilometers on the screen. 6 1 ImplementationProblemAnalysis Design / Algorithm Design / Algorithm TestingMaintenance

The Software Development Method C. Example 4. Implementation: (تنفيذ) “write the code” 7 1 Implementation ProblemAnalysis Design / Algorithm TestingMaintenance

The Software Development Method C. Example 5. Testing: “verify that the program works properly by trying few test cases” 8 1 ImplementationProblemAnalysis Design / Algorithm Testing Maintenance

The Software Development Method C. Example 6. Maintenance (صيانة) / Debugging: “remove undetected errors” 9 1 ImplementationProblemAnalysis Design / Algorithm Testing Maintenance

Implementation Problem Analysis Design Outline Testing Maintenance Exercise 2  Type the following code in an editor, and then run it:  Try to understand the output message: Build started: Project: Prog2_1, Configuration: Debug Win Compiling... Linking... \Debug\BuildLog.htm" Prog2_1 - 0 error(s), 0 warning(s) Note: you will understand the meaning of the code later 10 #include int main(void) { // 1. Display “Hello World!!” on the screen printf("Hello World!!\n"); return(0); }

Terms to Remember  Programming Language  Software Development Method  Editor  Compile  Linking  Run a program (Compiling then Linking) \ Build  Debug  Test Case 11 3