Polya’s 4-step Process 1.Understand the problem 2.Devise a plan 3.Carry out the plan 4.Look back, review results.

Slides:



Advertisements
Similar presentations
Mother boards A CPU Memory Input Out put. A mother board is a board that controls the hole computer or ipad. The mother bored provides electrical conations.
Advertisements

3. S/E with Control Structures 3.1 Relational Operators and Expressions 3.2 If and if-else Statements 3.3 The Type Double 3.4 Program Design with the While.
Chapter 2- Visual Basic Schneider
1 CSE1301 Computer Programming: Lecture 15 Flowcharts and Debugging.
General Computer Science for Engineers CISC 106 Lecture 10 Roger Craig Computer and Information Sciences 3/06/2009.
Algorithm Design CS105. Problem Solving Algorithm: set of unambiguous instructions to solve a problem – Breaking down a problem into a set of sub- problems.
1 CSE1301 Computer Programming: Lecture 15 Flowcharts, Testing and Debugging.
Chapter 8: Introduction to High-level Language Programming Invitation to Computer Science, C++ Version, Third Edition.
Chapter 8: Introduction to High-Level Language Programming Invitation to Computer Science, C++ Version, Fourth Edition.
Flow Charts. Thinking Creatively Flow Charts START END Is A==6? No A = 1 Yes Print A A = A + 1.
Algorithm & Flowchart.
What is a Hardware? Hardware is the physical parts of the computer system – the parts that you can touch and see.
12.2 – Analyze Arithmetic Sequences and Series. Arithmetic Sequence: The difference of consecutive terms is constant Common Difference: d, the difference.
Machine level architecture Computer Architecture Basic units of a Simple Computer.
Algorithms and Flowcharts for Programming CFD
Overview of Programming and Problem Solving. Objectives In this chapter you will: Learn about different types of computers Explore the hardware and software.
Week 2.  Understand what the processor is and what it does.  Execute basic LMC programs.  Understand how CPU characteristics affect performance.
Introduction to Computers (L02) * Hardware * Software * Programming Languages * Three Phase of Program Development * Development and Design Steps * Algorithms.
CPS120 Introduction to Computer Programming The Programming Process.
10.2 Arithmetic Sequences Date: ____________. Arithmetic Sequence Sequence in which each term after the first is obtained by adding a fixed number, called.
Section 12-1 Sequence and Series
The Central Processing Unit (CPU) and the Machine Cycle.
3.1 System Software. Overview Describe the purpose and functions of an operating system including the basic start- up sequence of a computer. Identify.
Visual Basic Programming
Chapter 2: General Problem Solving Concepts
Definition of Terms Software/Programs Programs that directs the operation of a computer system Set of instructions Codes Programming Process of planning,
Basic Control Structures
Warm up 1. Find the sum of : 2. Find the tenth term of the sequence if an = n2 +1: =
Computer Orgnization Rabie A. Ramadan Lecture 6. DataPath.
Arithmetic and Geometric
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
1 Program Planning and Design Important stages before actual program is written.
Introduction to Computing Dr. Nadeem A Khan. Lecture 2.
Problem-solving with Computers. 2Outline  Computer System  5 Steps for producing a computer program  Structured program and programming  3 types of.
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
A Brief Introduction to Recursion. Recursion Recursive methods … –methods that call themselves! –They can only solve a base case –So, you divide a problem.
Flow Control in Imperative Languages. Activity 1 What does the word: ‘Imperative’ mean? 5mins …having CONTROL and ORDER!
1 CSE1301 Computer Programming: Lecture 16 Flow Diagrams and Debugging.
Program Program is a collection of instructions that will perform some task.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
 Problem Analysis  Coding  Debugging  Testing.
13 1 Computer Programming Ch.15-A,B,C FALL 2000 Rob Wolfe.
Introduction to Programming / chapter 3 / COM1022
Computer Programming.
CHAPTER 6: The Little Man Computer
Chapter 2- Visual Basic Schneider
Central Processing Unit (CPU)
Computational Thinking
Computational Thinking
Computer Electronic device Accepts data - input
Mobile Development Workshop
Global Challenge Night Sensor Lesson 2.
Chapter 2- Visual Basic Schneider
Global Challenge Night Sensor Lesson 2.
Computer Programming.
Chapter 2- Visual Basic Schneider
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
CNET 315 Microprocessor & Assembly Language
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Input a number and print its table, using FOR loop.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
3.1 System Software.
COMPUTER HISTORY, PRESENT & FUTURE. What is a Computer? A computer is a machine that can be instructed to carry out sequences of arithmetic or logical.
Computer System.
Presentation transcript:

Polya’s 4-step Process 1.Understand the problem 2.Devise a plan 3.Carry out the plan 4.Look back, review results

Program Development Cycle 1.Analyze the problem 2.Design the program 3.Code the program 4.Test the program

A tempting shortcut? GOAL THINKING CODE REVISE DEBUG TEST CODE Shortcut?

Sequence

Selection NY

Loops (Iteration) N Y

Fibonacci Example SEQUENCE … QUESTION What is the value of the first term greater than 1000?

Fibonacci Example Is SUM <= 1000 No Yes NEXT  LAST LAST  SUM PRINT SUM SUM  LAST + NEXT LAST  1 NEXT  0

Fibonacci Example

Hardware / Software

A Simple Computer System Control Unit Arithmetic Unit Memory inputoutput Flow of instructions Flow of data Flow of control