ME 142 Engineering Computation I

Slides:



Advertisements
Similar presentations
CS 240 Computer Programming 1
Advertisements

Flow Control Analysis & Design Tool: Flowcharts
Documentation Letts Study Guide Information Systems - IT Chapter 19.
ME 142 Engineering Computation I Fundamentals of Procedural Computer Programming.
Getting Ready for the NOCTI test
Computer Programming Rattapoom Waranusast Department of Electrical and Computer Engineering Faculty of Engineering, Naresuan University.
Chapter 1 Pseudocode & Flowcharts
Fundamentals of Algorithms MCS - 2 Lecture # 4
Basics of Computer Programming Web Design Section 8-1.
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.
ITEC113 Algorithms and Programming Techniques
Programming Logic and Design, Introductory, Fourth Edition1 Understanding Computer Components and Operations (continued) A program must be free of syntax.
Chapter 3 Planning Your Solution
The Program Design Phases
Algorithm & Flowchart.
Fundamentals of C programming
1 Computer and Programming Flow Chart Derived from
Flow Charting. Goals Create Algorithms using Flow Charting procedures. Distinguish between Flow Charting and Pseudocode. Top-Down Design Bottom-up Design.
Design the program Create a detailed description of program –Use charts or ordinary language (pseudocode) Identify algorithms needed –Algorithm: a step-by-step.
PROGRAMMING LANGUAGES Prof. Lani Cantonjos. PROGRAM - set of step-by-step instructions that tells or directs the computer what to do. PROGRAMMING LANGUAGE.
1 Introduction to Flowcharting. 2 Writing a program Defining the problem –Write down what the program will do Planning –Write down the steps, draw a flowchart.
Flowcharts! January 13, 2005 These are today’s notes! Do you think we will get more snow?
Software Life Cycle What Requirements Gathering, Problem definition
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
Program Planning and Design. What is Program Planning and Design? Program planning and design is simply knowing what you want to do and how you want to.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
ECE Lecture 1 1 L8:Flowcharting a program Department of Electrical and Computer Engineering The Ohio State University ECE 2560.
Fundamentals of Algorithms MCS - 2 Lecture # 5. Representation of Algorithms (continued) Flowcharts.
Structured Programming (4 Credits)
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.
PROBLEM SOLVING. REDBLUE GREENPINK ORANGEYELLOW Exit.
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.
AS Level Computing 8 CHAPTER: Fundamentals of structured programming The basics of good programming Algorithms System Flow Charts Symbol Conventions Steps.
Programming – Algorithms (Flowcharts)
Flow Charts Basic Flow Chart Symbols Few sample flowcharts Rules
GC101 Introduction to computers and programs
Introduction to Flowcharting
Chapter One Problem Solving
Basics of Computer Programming
Introduction to Computing
Computer Programming Flowchart.
Introduction to Flowcharting
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.
Introduction To Flowcharting
ALGORITHM Basic CONCEPTS of Basic Concepts of Algorithm
Numbering System TODAY AND TOMORROW 11th Edition
Basics of Computer Programming
What is a Flow Chart? An organized combination of shapes, lines, and text that graphically illustrates a process or structure A pictorial representation.
2.0 Problem Solving PROGRAM DESIGN
What is a Flow Chart ? An organized combination of shapes, lines, and text that graphically illustrates a process or structure A pictorial representation.
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
Basics of Computer Programming
Chapter 1 Pseudocode & Flowcharts
CPSC 1301 Columbus State University
Unit# 9: Computer Program Development
What is a Flow Chart ? An organized combination of shapes, lines, and text that graphically illustrates a process or structure A pictorial representation.
Structured Program Design
Chapter 1 Pseudocode & Flowcharts
Introduction to Algorithms and Programming
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Faculty of Computer Science & Information System
Chapter 2- Visual Basic Schneider
Introduction to Programming
Basic Concepts of Algorithm
Introduction to Programming
Introduction to Flowcharts
Presentation transcript:

ME 142 Engineering Computation I Fundamentals of Procedural Computer Programming

Key Concepts Algorithm Development Flowcharting

Algorithm A set of instructions for solving a problem A step-by-step procedure for obtaining a solution to a given class of problems Example: recipe

Algorithm Most programs consist of the following simplified algorithm: Input Process Output

Algorithm Example Develop the algorithm to find the area of a rectangle: Input: Enter length, width Process: Multiply length times width to obtain area Area = length * width Output: Display area

Flowcharts A flowchart is a pictorial representation of an algorithm. Steps of the algorithm are enclosed in boxes of various shapes. The flow of control is indicated by lines connecting the boxes. An arrow is placed on each line to indicate direction of flow.

Standard Flowcharting Symbols Terminator box. Used to show both the start and stop of an algorithm. Operation box. Used for computations, assignment statements, definitions, etc. Input/Output box. Used to indicate items to be read or written by the algorithm.

Standard Flowcharting Symbols Decision box. Used to pose questions in determining which branch to follow for the next instruction. Connector circle. Used to connect parts of the flowchart from page to page, etc.

Flowcharting Example Area of a Rectangle Start Enter length, width area = length * width Display area Stop

Flowcharting Guidelines Flowcharts are written to be a guide for writing actual code. The flowchart should have just enough detail for you to code from. Think in terms of small, sequential operations What needs to be done What order, i.e., what must come first, etc