Program Design & Development EE 201 C7-1 Spring 20121.

Slides:



Advertisements
Similar presentations
CS101: Introduction to Computer programming
Advertisements

CS 240 Computer Programming 1
Chapter 2: Problem Solving
Flow Charts, Loop Structures
PSEUDOCODE & FLOW CHART
UNIT 2. Introduction to Computer Programming
Chapter 1 - An Introduction to Computers and Problem Solving
Chapter 2 - Problem Solving
Reference :Understanding Computers
Chapter 2 - Problem Solving
CS 240 Computer Programming 1
Basics of Computer Programming Web Design Section 8-1.
INTRODUCTION TO PROGRAMMING
II N T R O D U C T I O N PP R E T E S T DD E S I G N I N G A L G O R I T H M DD E S I G N I N G F L O W C H A R T GG E N E R A L R U L E S F.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
The Program Design Phases
ALGORITHMS AND FLOW CHARTS 1 Adapted from the slides Prepared by Department of Preparatory year Prepared by: lec. Ghader Kurdi.
Algorithm & Flowchart.
An ordered sequence of unambiguous and well-defined instructions that performs some task and halts in finite time Let's examine the four parts of this.
Programming Concepts Chapter 3.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
CSE 102 Introduction to Computer Engineering What is an Algorithm?
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (4): Control Flow (Chapter 2)
Computational Thinking – Lesson 3 Lesson Objective To be able to construct an algorithm and flowchart for a given problem.
Flowcharts. Problem Solving Computer programs are written to solve problems or perform tasks Programmers translate the solutions or tasks into a language.
ALGORITHM List of instructions for carrying out some process step by step. A sequence of instructions which has a clear meaning and can performed with.
Algorithms & Flowchart
Chapter 2: General Problem Solving Concepts
1 Programming with MATLAB ผศ. ดร. อนันต์ ผลเพิ่ม Anan Phonphoem
Basic problem solving CSC 111.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
CSCI-100 Introduction to Computing
`. Lecture Overview Structure Programming Basic Control of Structure Programming Selection Logical Operations Iteration Flowchart.
1 Programming Tools Flowcharts Pseudocode Hierarchy Chart Direction of Numbered NYC Streets Algorithm Class Average Algorithm.
Introduction to Computing Dr. Nadeem A Khan. Lecture 2.
Chapter 2 - VB 2005 by Schneider- modified by S. Jane '081 Chapter 2 - Problem Solving 2.1 Program Development Cycle 2.2 Programming Tools.
WHAT IS THIS? Clue…it’s a drink SIMPLE SEQUENCE CONTROL STRUCTURE Introduction A computer is an extremely powerful, fast machine. In less than a second,
Flowchart. a diagram of the sequence of movements or actions of people or things involved in a complex system or activity. a graphical representation.
FLOWCHARTING AND ALGORITHMS
Flowcharts C++ Lab. Algorithm An informal definition of an algorithm is: a step-by-step method for solving a problem or doing a task. Input data A step-by-step.
STEP 3- DEVELOP AN ALGORITHM At this stage we break down the problem into simple manageable steps so that they can be handled easily.
Progression in KS3/4 Algorithms MONDAY 30 TH NOVEMBER SUE SENTANCE.
An Introduction to Programming with C++1 Beginning the Problem- Solving Process Tutorial 2.
EE 201 1C10-2 Spring 2012 LOOPS For.  Achieve Comprehension LOL of using Loops in programming. Class Learning Objectives 2C10-2 Spring 2012.
Flow Charts And Pseudo Codes Grade 12. An algorithm is a complete step-by- step procedure for solving a problem or accomplishing a task.
Pseudocode (pronounced SOO-doh-kohd)  is a detailed yet readable description of what a computer program or algorithm must do, expressed in a formally-styled.
Learning outcomes 5 Developing Code – Using Flowcharts
GC101 Introduction to computers and programs
Lesson 2 Flowcharting.
Basics of Computer Programming
Flowcharting Guidelines
Computer Programming Flowchart.
Algorithms and Flowcharts
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.
Lecture 2 Introduction to Programming
Basics of Computer Programming
ALGORITHMS & FLOWCHARTING II
Algorithm Algorithm is a step-by-step procedure or formula or set of instruction for solving a problem Its written in English language or natural language.
Basics of Computer Programming
Introduction to Computer Programming
Unit# 9: Computer Program Development
الفصل الثاني الخوارزمية
Chapter 2- Visual Basic Schneider
Understanding Problems and how to Solve them by using Computers
Introduction to Programming
Basic Concepts of Algorithm
WJEC GCSE Computer Science
LOOPS For EE 201 C10-1 SPRING 2012.
Presentation transcript:

Program Design & Development EE 201 C7-1 Spring 20121

 Achieve Comprehension LOL of using Flowcharting in programming  Demonstrate a willingness to respond to using Flowcharting in programming. Class Learning Objectives C7-1 Spring 20122

Matlab Programming Mode C7-1 Spring 20123

Algorithms and Control  Structures Algorithm: an ordered sequence of precisely defined instructions that performs some task in a finite amount of time.  Ordered means that the instructions can be numbered, but an algorithm must have the ability to alter the order of its instructions using a control structure. C7-1 Spring 20124

There are three categories of Algorithmic operations:  Sequential operations: Instructions executed in order.  Conditional operations: Control structures that first ask a question to be answered with a true/false answer and then select the next instruction based on the answer.  Iterative operations (loops): Control structures that repeat the execution of a block of instructions. C7-1 Spring 20125

Steps for developing a computer solution: Table 4.1–1  1. State the problem concisely.  2. Specify the data to be used by the program. This is the “input.”  3. Specify the information to be generated by the program. This is the “output.” (continued …) C7-1 Spring 20126

Steps for developing a computer solution: Table 4.1–1  4. Work through the solution steps by hand or with a calculator; use a simpler set of data if necessary.  5. Write and run the program.  6. Check the output of the program with your hand solution. (continued …) C7-1 Spring 20127

Steps for developing a computer solution: Table 4.1–1  7. Run the program with your input data and perform a reality check on the output.  8. If you will use the program as a general tool in the future, test it by running it for a range of reasonable data values; perform a reality check on the results. C7-1 Spring 20128

Effective documentation can be accomplished with the use off: C7-1 Spring 20129

Introduction to Flowcharts C7-1 Spring

Introduction to Flowcharts C7-1 Spring

C7-1 Spring

OBJECTIVES At the end of this lesson, you will be able to understand:  The meaning of flowchart.  The basic parts of the flowchart such as flowchart symbols and the flow lines connecting these symbols.  The advantages and limitations of flowchart C7-1 Spring

MEANING OF A FLOWCHART  A flowchart is a diagrammatic representation that illustrates the sequence of operations to be performed to get the solution of a problem. C7-1 Spring

GUIDELINES FOR DRAWING A FLOWCHART  Start or end of the program  Computational steps or processing function of a program  Input or output operation  Decision making and branching  Connector or joining of two parts of program  Flow line C7-1 Spring

16  Draw a flowchart to compute and display the sum, average and product of three numbers EXAMPLES ON FLOWCHARTING Sequential operation C7-1 Spring 2012

EXAMPLES ON FLOWCHARTING C7-1 Spring

Flowchart 18 C7-1 Spring 2012 Display B T F Start Input A,B,C A>B Display A End Display C B>C Display C T F A>C F T

EXAMPLES ON FLOWCHARTING C7-1 Spring

C7-1 Spring Idea of Looping Flowchart

EXAMPLES ON FLOWCHARTING C7-1 Spring

C7-1 Spring Idea of Looping Flowchart