class 4 repetition
Download
Skip this Video
Download Presentation
Class 4: Repetition

Loading in 2 Seconds...

play fullscreen
1 / 10

Class 4: Repetition - PowerPoint PPT Presentation


  • 77 Views
  • Uploaded on

Class 4: Repetition. Pretest 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

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Class 4: Repetition' - aerona


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
class 4 repetition
Class 4: Repetition
  • Pretest
    • 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
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
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

Polya’s Problem-Solving Methodology
computer programming
Computer Programming
  • Events
  • Control Structures
  • Objects
events
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
The Three Control Structures:How are you using each of these in your program?
  • Sequence
  • Decision or Selection
  • Repetition or Loops
objects
Objects
  • What does an object 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
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

Quiz 4:

Add comments to your code which match your goals and design.

Email this to me:[email protected]

ad