Class 4: Repetition Pretest Posttest Counting Flowchart these!

Slides:



Advertisements
Similar presentations
Decision Structures - If / Else If / Else. Decisions Often we need to make decisions based on information that we receive. Often we need to make decisions.
Advertisements

CS101: Introduction to Computer programming
CS0004: Introduction to Programming Repetition – Do Loops.
Programming Logic and Design Seventh Edition
Repeating Actions While and For Loops
Chapter 2: Algorithm Discovery and Design
Chapter 2: Algorithm Discovery and Design
Program Design and Development
Chapter 2: Algorithm Discovery and Design
PROGRAMMING, ALGORITHMS AND FLOWCHARTS
CIS Computer Programming Logic
Dawn McKinney ° School of Computer and Information Sciences ° University of South Alabama ° Mobile, AL ° June – July 2007 Answers to QUIZ 1 1. What are.
Invitation to Computer Science, Java Version, Second Edition.
Jaeki Song ISQS6337 JAVA Lecture 04 Control Structure - Selection, and Repetition -
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
CSCI 3327 Visual Basic Chapter 4: Control Statements in Visual Basic (Part 1B) UTPA – Fall 2011.
WDMD 170 – UW Stevens Point 1 WDMD 170 Internet Languages eLesson: Decision Making with Control Structures and Statements (non-audio version) © Dr. David.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Visual Basic.net Loops. Used to do multiple executions of the same block of code Do while loops Do until loops For next loops.
An Introduction to Programming with C++ Sixth Edition Chapter 7 The Repetition Structure.
Computer Programming TCP1224 Chapter 8 More On Repetition Structure.
`. Lecture Overview Structure Programming Basic Control of Structure Programming Selection Logical Operations Iteration Flowchart.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 5A Repetition (Concepts)
Chapter 15 JavaScript: Part III The Web Warrior Guide to Web Design Technologies.
 In computer programming, a loop is a sequence of instruction s that is continually repeated until a certain condition is reached.  PHP Loops :  In.
Programming Logic and Design, Introductory, Fourth Edition1 Understanding the Three Basic Structures Structure: a basic unit of programming logic Any program.
Copyright © 2012 Pearson Education, Inc. Chapter 5: Loops.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 14 Do It, Then Ask Permission.
Topic: Control Statements. Recap of Sequence Control Structure Write a program that accepts the basic salary and allowance amount for an employee and.
Programming Logic and Design Fifth Edition, Comprehensive
Flow Control in Imperative Languages. Activity 1 What does the word: ‘Imperative’ mean? 5mins …having CONTROL and ORDER!
Microsoft® Small Basic Conditions and Loops Estimated time to complete this lesson: 2 hours.
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.
Programming Logic and Design Fourth Edition, Introductory Chapter 2 Understanding Structure.
An Introduction to Programming with C++ Sixth Edition Chapter 8 More on the Repetition Structure.
PHP Condtions and Loops Prepared by Dr. Maher Abuhamdeh.
Identify the Appropriate Method for Handling Repetition
Chapter 8: More on the Repetition Structure
3.1 Fundamentals of algorithms
REPETITION CONTROL STRUCTURE
Pseudocode Upsorn Praphamontripong CS 1110 Introduction to Programming
Introduction To Flowcharting
Chapter 5: Repetition Structures
( Iteration / Repetition / Looping )
Web Programming– UFCFB Lecture 16
Algorithm and Ambiguity
Using the Priming Read Priming read (or priming input):
LESSON 11 – WHILE LOOPS UNIT 5 – 1/10/17.
Algorithms & Pseudocode
MSIS 655 Advanced Business Applications Programming
Chapter 6: Repetition Structures
Chapter 5: Repetition Structures
Understanding the Three Basic Structures
CIS 16 Application Development Programming with Visual Basic
` Structured Programming & Flowchart
Chapter 8: More on the Repetition Structure
Introduction to Problem Solving and Control Statements
Three Special Structures – Case, Do While, and Do Until
Algorithm and Ambiguity
Computer Science Core Concepts
ICT Programming Lesson 3:
Creating Computer Programs
Flow of Control.
Introduction to Programming
The structure of programming
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.
Creating Computer Programs
Thinking procedurally
WJEC GCSE Computer Science
Presentation transcript:

Class 4: Repetition Pretest Posttest Counting Flowchart these! Condition tested before block of code to repeat If condition is false initially, the block never executes Posttest Condition tested after block of code to repeat Block of code will always execute at least once Counting Repeat for a specified number of times Flowchart these!

Last Class Tomorrow: Show Time! Using the overhead, demonstrate your project: Show your design in the form of pseudocode, flowcharts, and a verbal description of your goal. Show your code - each method which will contain comments describing the task of each method. Demonstrate your program by running it a few times. Answer questions from the audience (us). Audience will make suggestions for improving your project. You will be required for the final exam, which will be on July 25, to describe how you improved your program. You will also be required to implement improvements for the final demonstration on July 25.

What have we learned this week? Polya’s Problem-Solving Methodology Computer Programming Control Structure Objects Events

Polya’s Problem-Solving Methodology What does Polya teach us? How can we use this? For what? Other classes? Real life? How does it help us to make good programs? Understand the Problem Devise a Solution Implement the Solution Evaluate the Solution

Computer Programming Events Control Structures Objects

Events Give some examples. When do you use events in a program? How are you using events?

The Three Control Structures: How are you using each of these in your program? Sequence Decision or Selection Repetition or Loops

Objects What does an object have? What objects do you have? Properties Methods What objects do you have? What are some properties? What are some methods?

What else is there to learn about computer programming? Variables Constants Passing Parameters List Data Structures Dynamic Data Structures Multiple Threads Recursion And More…

Quiz 4: Add comments to your code which match your goals and design. Email this to me: dmckinnney@usouthal.edu