Pseudocode Developing Your Program Logic. What is Pseudocode zA computer program is the representation of an "algorithm" (an unambiguous set of steps,

Slides:



Advertisements
Similar presentations
ALGORITHMS AND FLOWCHARTS
Advertisements

ALGORITHMS AND FLOWCHARTS
PROBLEM SOLVING TECHNIQUES
1 ICS102: Introduction To Computing King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
INTRODUCTION TO PROGRAMMING
Program Flow Charting How to tackle the beginning stage a program design.
Lecture Notes 1/21/04 Program Design & Intro to Algorithms.
Programming Fundamentals (750113) Ch1. Problem Solving
Chapter 1 Program Design
Flowcharts adapted from A Visual Tool for Logic Design and Program Planning, by Dr. Donald Bell, Cal Poly, 1999 updated April, 2010.
1 Chapter 2 Problem Solving Techniques INTRODUCTION 2.2 PROBLEM SOLVING 2.3 USING COMPUTERS IN PROBLEM SOLVING : THE SOFTWARE DEVELOPMENT METHOD.
Chapter 3 Planning Your Solution
The Program Design Phases
Review Algorithm Analysis Problem Solving Space Complexity
PRE-PROGRAMMING PHASE
Fundamentals of C programming
ALGORITHMS AND FLOWCHARTS
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
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.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
ALGORITHMS AND FLOWCHARTS CSCI 105 – Computer Fluency.
Definition of Terms Software/Programs Programs that directs the operation of a computer system Set of instructions Codes Programming Process of planning,
CMSC 104: Peter Olsen, Fall 99Lecture 9:1 Algorithms III Representing Algorithms with pseudo-code.
CS221 Algorithm Basics. What is an algorithm? An algorithm is a list of instructions that transform input information into a desired output. Each instruction.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
Program Development C# Programming January 30, 2007 Professor J. Sciame.
The Art of Programming. The process of breaking problems down into smaller, manageable parts By breaking the problem down, each part becomes more specific.
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
Problem-solving with Computers. 2Outline  Computer System  5 Steps for producing a computer program  Structured program and programming  3 types of.
Flowchart. a diagram of the sequence of movements or actions of people or things involved in a complex system or activity. a graphical representation.
CMPSC 16 Problem Solving with Computers I Spring 2014 Instructor: Tevfik Bultan Lecture 4: Introduction to C: Control Flow.
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.
CMSC 2021 Software Development. CMSC 2022 Software Development Life Cycle Five phases: –Analysis –Design –Implementation –Testing –Maintenance.
ALGORITHMS AND FLOWCHARTS. A typical programming task can be divided into two phases: Problem solving phase  produce an ordered sequence of steps that.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
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.
Introduction to Problem Solving Programming is a problem solving activity. When you write a program, you are actually writing an instruction for the computer.
| MSC 8102:PROGRAMMING CONCEPTS By Vincent Omwenga, PhD. 1.
 Problem Analysis  Coding  Debugging  Testing.
Learning outcomes 5 Developing Code – Using Flowcharts
ICS 3UI - Introduction to Computer Science
GC101 Introduction to computers and programs
CSCI-235 Micro-Computer Applications
Computer Programming.
FLOWCHARTS.
COVERED BASICS ABOUT ALGORITHMS AND FLOWCHARTS
System Design.
Algorithm and Ambiguity
Lecture 2 Introduction to Programming
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.
ALGORITHMS AND FLOWCHARTS
Unit# 9: Computer Program Development
Problem Solving Techniques
ALGORITHMS AND FLOWCHARTS
Introduction to Algorithms
1) C program development 2) Selection structure
ALGORITHMS AND FLOWCHARTS
Chapter 2- Visual Basic Schneider
Introduction to Algorithms and Programming
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
ME 142 Engineering Computation I
No Yes START Do you live in Scotland? Take umbrella See last Flowchart
Click to add Text Computers & Instructions. Computers are given instructions in the form of computer programs that are created through the development.
ICT Gaming Lesson 2.
Introduction to Programming
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Presentation transcript:

Pseudocode Developing Your Program Logic

What is Pseudocode zA computer program is the representation of an "algorithm" (an unambiguous set of steps, in a particular order, which when followed will solve the problem) zPseudocode is the representation of these steps in "structured English" ySteps must be clear (i.e. unambiguous) yOrder must be specified yWhen the steps (i.e., instructions) are followed, they must produce a solution to the specified problem

Why Develop Logic Using Pseudocode? zThe alternative: just enter Java code? ylogic is not clear ycomputer language (e.g., Java) is too detailed and lengthy yfocus moves to language syntax yis not conducive to successive refinement zFlowcharts and other design tools are suitable alternatives to pseudocode

Successive Refinement zEqually applicable whether you use pseudocode or flowcharting zStart at the "top" which is a one line statement of your program's purpose and break it down by stages into greater and greater levels of detail zSuccessive refinement stops when there is enough detail to write the program zEach pseudocode statement or flowchart symbol is a basic building block (like a tinker toy) ythese are assembled into complex structures yassembled in specific ways

Applying Successive Refinement zStart with a one-line statement of the problem zBreak down into 3-5 steps zBreak down each of these into 3-5 steps zContinue this process (i.e. successive refinement) until each step will become one or a small number of Java statements

Program (Logic) Planning zLook at the output (desired product) zDetermine what inputs are necessary to allow the creation of desired output zDesign the logic (steps) to collect the input and build the desired output zOften this leads to a general program logic flow of yinput yprocessing youtput

Advantages Derived from Using Pseudocode zGood tool for program logic planning zCan use to review system logic with user zCan document logic for system maintenance