Design and Implementation

Slides:



Advertisements
Similar presentations
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
Advertisements

PRE-PROGRAMMING PHASE
Programming: Simple Control Structures Alice. Control Statements We have been using Do in order and Do together to control the way instructions are executed.
Python quick start guide
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.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
Computer Science 12 Mr. Jean May 2 nd, The plan: Video clip of the day Review of common errors in programs 2D Arrays.
Four Fundamental Pieces Instruction Control Structure Function Expression.
Introduction to Programming with RAPTOR
© Jalal Kawash Programming Peeking into Computer Science 1.
An Introduction to Programming with C++ Sixth Edition Chapter 7 The Repetition Structure.
1 Program Planning and Design Important stages before actual program is written.
Fall 2009ACS-1805 Ron McFadyen1 Chapter 2 Program Design & Implementation.
Review for test! Alice Chapter 1&2 Test is tomorrow! - March 26 th March 25th.
Programming: Simple Control Structures
Obj: Programming: Simple Control Structures HW: Read section 3 – 2 AC3 D2 Do Now: 1.Log on to Alice. Open the file firstEncounter.a2w located in the folder.
Learning Objective To be able to… Understand flow chart symbols Complete and correct flow chart algorithms Create a program based on a flow chart.
Flow Control in Imperative Languages. Activity 1 What does the word: ‘Imperative’ mean? 5mins …having CONTROL and ORDER!
Problem Solving.  Similar to Solving Math Word Problem  Read the Problem  Decide how to go about Solving the Problem  Solve the Problem  Test the.
Introduction to Problem Solving Programming is a problem solving activity. When you write a program, you are actually writing an instruction for the computer.
 Problem Analysis  Coding  Debugging  Testing.
1 Quiz Show Programming Terms. 2 Alice - 3D Virtual Programming Vocabulary Quiz Board Chapter 1 Chapter 2a Chapter 2b Chapter 3 Chapter 4 $100 $200 $300.
IST 210: PHP Logic IST 210: Organization of Data IST2101.
ALGORITHMS AND FLOWCHARTS
Basics of Computer Programming
Programming: Simple Control Structures
Execution Control with If/Else and Boolean Functions
GC211Data Structure Lecture2 Sara Alhajjam.
Programming: Simple Control Structures
Programming Mehdi Bukhari.
Introduction To Flowcharting
Review If you want to display a floating-point number in a particular format use The DecimalFormat Class printf A loop is… a control structure that causes.
Basics of Computer Programming
Basics of Computer Programming
Simple Control Structures
Introduction to Computer Programming
Programming Fundamentals
An Introduction to Visual Basic .NET and Program Design
Microsoft Visual Basic 2005 BASICS
ALGORITHMS AND FLOWCHARTS
Print slides for students reference
Control Structure Senior Lecturer
LESSON 11 – WHILE LOOPS UNIT 5 – 1/10/17.
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Unit# 9: Computer Program Development
Lesson 8: Boolean Expressions and "if" Statements
Programming: Simple Control Structures
Program Design Introduction to Computer Programming By:
Creating an Animation Program
Scratch: selection / branching/ if / If…else / compound conditionals / error trapping by Mr. Clausen.
Programming: Simple Control Structures
ALGORITHMS AND FLOWCHARTS
Chapter 2- Visual Basic Schneider
Chapter 1 Introduction(1.1)
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Faculty of Computer Science & Information System
Chapter 2- Visual Basic Schneider
Programming: Simple Control Structures
Intro to Computer Science CS1510 Dr. Sarah Diesburg
Programming: Simple Control Structures
Computer Science Core Concepts
Topics Introduction to Value-returning Functions: Generating Random Numbers Writing Your Own Value-Returning Functions The math Module Storing Functions.
Intro to digital technology
Programming: Simple Control Structures
ICT Gaming Lesson 2.
Developing a Program.
Basic Concepts of Algorithm
LOOPS The loop is the control structure we use to specify that a statement or group of statements is to be repeatedly executed. Java provides three kinds.
Do it now activity Log onto the computer.
Programming: Simple Control Structures
Presentation transcript:

Design and Implementation

Four Steps to Programming Read Design Implement Test

Program A program is a list of instructions (actions) to accomplish a task. Each instruction is an action to be performed with a program. The process includes the four steps: Read a scenario Design a storyboard Implement the code for the program Test the program

Read Is the description of the story, game or simulation, often called the “problem statement.”

Design How to go about creating the animation or program Usually includes a flowchart A form of communicating a programs design or a programs sketch.

Flowcharting The best way to communicate a programs design is to create a design sketch or a visual system. Flowcharts are constructed using a basic collection of symbols and are related to the actions that occur as the program runs.

Flowchart Symbols and Details terminal processing Represents an action where the User of the program is being asked Information or a result is displayed: Words associated w/symbol: read, Print, and write. Represents the beginning and ending of a complete program: Words associated w/symbol: start, begin, end, stop and return Used to illustrate mathematical Operations, or built-in instruction Or statement. Input/output decision call Represents an action where a decision is to Be made. The outcome of a decision is a Boolean value, which is either true or false. Words w/symbol express the condition or test. Represents the action of one piece of a program calling another piece of the program.

Test Implementation The written code of a program Running the program for errors. Errors in computer programs are generally referred to as bugs. Correcting errors in a program is debugging.

Other Terms Algorithms: A textual storyboard. Comments: Used to describe what a program is designed to do. Functions: A math operation on numbers or other kinds of values. Expression: A math operation on numbers or other number or other kinds of values.

Control Statements or Control Structure Do in order Do together If/Else: A conditional execution control structure used to make a decision about whether a particular section of s program will be executed. Loop: a repetitious control structure that is used to repeat a section again and again. Do while For all in order

Control statements can be nested meaning that one program statement can be written inside another.