Introduction to Programming Design School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 1, Friday 01/17/2003) (Continued)

Slides:



Advertisements
Similar presentations
Introduction to Programming
Advertisements

COMPUTER PROGRAMMING I Understand Problem Solving Tools to Design Programming Solutions.
Program Flowchart, Pseudocode & Algorithm development
Repetition Control Structures School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 9, Friday 3/07/2003)
Chapter 3 IFTHENELSE Control Structure © 2008 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. Marilyn Bohl/Maria Rynn Tools for Structured.
Chapter 1 - An Introduction to Computers and Problem Solving
Introduction to Programming
زبانهای برنامه سازی برنامه سازی پیشرفته ارائه دهنده دکتر سيد امين حسيني E.mail: Home page:
McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 14 Programming and Languages.
Chapter 2: Algorithm Discovery and Design
This set of slides is provided by the author of the textbook1 Introductory Topics l Computer Programming l Programming Life-Cycle Phases l Creating an.
Chapter 2: Algorithm Discovery and Design
Algorithm Design CS105. Problem Solving Algorithm: set of unambiguous instructions to solve a problem – Breaking down a problem into a set of sub- problems.
Lecture Notes 1/21/04 Program Design & Intro to Algorithms.
Chapter 2 Writing Simple Programs
Computers: Information Technology in Perspective By Long and Long Copyright 2002 Prentice Hall, Inc. Developing Business Information Systems Chapter 11.
Program Development and Programming Languages
An Introduction to Programming with C++ Fifth Edition Chapter 1 An Introduction to Programming.
Lecture Notes 8/30/05 Program Design & Intro to Algorithms.
Chapter 2: Algorithm Discovery and Design
McGraw-Hill Technology Education © 2006 by the McGraw-Hill Companies, Inc. All rights reserved CHAPTER PROGRAMMING AND LANGUAGES.
1414 CHAPTER PROGRAMMING AND LANGUAGES. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved Competencies Describe the six steps of programming.
ALGORITHMS AND FLOW CHARTS 1 Adapted from the slides Prepared by Department of Preparatory year Prepared by: lec. Ghader Kurdi.
Intro to Programming CST JavaScript. Objectives Define software Identify the different types of software Differentiate the different types of programming.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Programming Languages CPS120: Introduction to Computer Science Lecture 5.
Learning Objectives Data and Information Six Basic Operations Computer Operations Programs and Programming What is Programming? Types of Languages Levels.
CC111 Lec#5: Program Development 1 Program Development and Programming Languages Lecture 4 Reference :Understanding Computers Chapter 13.
Computer Programming TCP1224 Chapter 2 Beginning the Problem-Solving Process.
Introduction to Programming Design School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week1, Wednesday 01/15/2003)
CHAPTER 1: INTRODUCTION TO COMPUTER SCIENCE Introduction to Computer Science Using Ruby (c) 2012 Ophir Frieder et al.
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
An Introduction to Programming with C++ Sixth Edition
PROGRAMMING LANGUAGES Prof. Lani Cantonjos. PROGRAM - set of step-by-step instructions that tells or directs the computer what to do. PROGRAMMING LANGUAGE.
PROGRAMMING. Objectives Define the term program List and explain the steps involved in developing a program.
1 Overview of Programming and Problem Solving Chapter 1.
Describe the Program Development Cycle. Program Development Cycle The program development cycle is a series of steps programmers use to build computer.
Chapter 1 Introduction to Structured Design. Introduction  System  A combination of people, equipment, and procedures that work together to perform.
Overview of Programming and Problem Solving Textbook Chapter 1 1.
© 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.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
Pseudocode. Simple Program Design, Fourth Edition Chapter 2 2 Objectives In this chapter you will be able to: Introduce common words, keywords, and meaningful.
Lecture 11: 10/1/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
Practical Programming COMP153-08S Week 5 Lecture 1: Screen Design Subroutines and Functions.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
Intro to Programming Web Design ½ Shade Adetoro. Programming Slangs IDE - Integrated Development Environment – the software in which you develop an application.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
Computer Programming I Summer 2011
Structured Programming (4 Credits)
Programming Languages
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
©Brooks/Cole, 2003 Chapter 1 Introduction. ©Brooks/Cole, 2003 Figure 1-1 Data processor model This model represents a specific-purpose computer not a.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
1 Structured Programming Arab Academy for Science and Technology CC112 Dr. Sherif Mohamed Tawfik The Course.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
CIS 365: Visual Application Development Introduction to Computers and Programming.
Introduction to Programming in C++ Seventh Edition Chapter 1: An Introduction to Programming.
Understand Problem Solving Tools to Design Programming Solutions
Algorithm & Programming
Understand Problem Solving Tools to Design Programming Solutions
An Introduction to Visual Basic .NET and Program Design
Problem Solving Techniques
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
ICT Programming Lesson 3:
Life is Full of Alternatives
ICT Gaming Lesson 2.
Basic Concepts of Algorithm
Presentation transcript:

Introduction to Programming Design School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 1, Friday 01/17/2003) (Continued)

2 Learning Objectives n Distinguish between Procedure-oriented programming and Event-driven programming n Name the three basic control structures of structured programming

3 Programming languages English Machine Language Programming languages: Procedural languages 4GL languages Event-driven prog. languages Object-Oriented languages

4 Procedural language n Requires programmer to code specific steps in problem-solving process n Example: COBOL, PASCAL, BASIC PRINT "Enter a Fahrenheit temperature:" INPUT FARENHT CELSIUS = (FARENHT - 32) * 5 / 9 PRINT "The Fahrenheit temperature is "; FARENHT PRINT "The Celsius temperature is "; CELSIUS END

5 Event-driven programming languages n Respond to actions (events) that occur when the program is running n Events initiated by the computer or by the user n Programmer design logic associated with events n Example of Event-driven programming language: Visual Basic Private Sub btnOK_Click () Amount = Val (txtAmount.text) Taxe = Amount * 0.06 End Sub

6 Structured programming n Based on computer’s ability to: – Execute instructions in a step-by-step manner – Make decisions – Repeat instructions n Problem solving using 3 basic patterns of logic n Basic Control structures: – SIMPLE SEQUENCE Control structure – IFTHENELSE Control structure – DOWHILE Control structure

7 SIMPLE SEQUENCE Control structure n Represent computers’ ability to execute instructions in a step-by-step (sequential) manner 1. Proceed down Main Street for two miles. 2. Turn left on Ocean Drive. 3. Proceed on Ocean Drive for three blocks, to the fork. 4. At the fork, take Swan Street to the left. 5. Proceed two blocks. 6. House is second on the left (246 Swan Street) Figure 1-9 Simple Sequence: An Example

8 IFTHENELSE Control structure n Represent computers’ ability to make decisions 4. IF left turn at fork is blocked THEN Take right turn at fork onto Eagle Street. Proceed five blocks. Turn left at Clifton Avenue. Proceed three blocks. Turn left at Circle Drive. Proceed two blocks. Turn left at Swan Street. House is fourth on the right (248 Swan Street). ELSE At the fork, take Sawn Street to the left. Proceed two blocks. House is second on the left (248 Swan Street) ENDIF Figure 1-10 IFTHENELSE : An Example

9 DOWHILE Control structure n Represent computers’ ability to repeat instructions n A series of repeated instructions is called a loop Figure 1-13 DOWHILE: An Example DOWHILE hair is not clean Wash hair Rinse hair ENDDO

10 Summary Questions 1. What does it mean to say that a language is procedure-oriented ? 2. (a) Give an example of a procedural language. (b) Give an example of a event-driven programming language. 3. What is meant by Event-driven programming? 4. Name the 3 basic control structures of structured programming

11 1. Analyze the current system 2. Define the new system requirements 3. Design the new system 4. Develop the new system 5. Implement 6. Evaluate the new system System Development Life Cycle 4.1. Review the input, processing, output and storage requirements 4.2. Develop the logic for the program 4.3. Write the program using a programming language 4.4. Test and debug the program 4.5. Complete the program documentation