Repeat Day2 Dry Run Second Repeat Program

Slides:



Advertisements
Similar presentations
E.g.9 For to do loop for i:=1 to 10 do writeln(i); While do loop i:=1;
Advertisements

Welcome to Jeff’s baseball game! Here is how to play. You are asked a math question and you have to get it right or you will repeat the question until.
ALICE 3D PROGRAM WORKSHOP. ALICE & MATHEMATICS Using Alice in Mathematics Using 3D Graphics to add in the understanding of math concepts.
Lecture 15 Practice & exploration Subfunctions: Functions within functions “Guessing Game”: A hands-on exercise in evolutionary design © 2007 Daniel Valentine.
Questions as we get started?. Getting Loopy Unplugged Activity (Course 2, Lesson 5) I need a volunteer to come up and follow my directions. I need a second.
ORDER OF OPERATIONS x 2 Evaluate the following arithmetic expression: x 2 Each student interpreted the problem differently, resulting in.
Even more problems.. Mean (average) I need a program that calculates the average of student test scores. I need a program that calculates the average.
When estimating, 1.) You should be able to do the computation in your head 2.) Your answer should be close to the exact answer 1-1 Estimating sums, differences.
Computer Science I: Understand how to evaluate expressions with DIV and MOD Random Numbers Reading random code Writing random code Odds/evens/…
4 th and 5 th Grade Guess the Covered Word Vocabulary: Answers to Math Problems.
AP Java Java’s version of Repeat until.
Basic Play Each team gets a to take one shot for a correctly answered question. After each shot, each teams number of points are added to their score.
Scratch Programming Cards
GCSE COMPUTER SCIENCE Practical Programming using Python
Lesson 6.4 Course 3 Simplify each expression Simplify each expression
Lesson 6.1 Course 3 Simplify each expression Simplify each expression
Canvas and Arrays in Apps
Maths in SmallBasic Learning Objectives
Subtraction – Objectives
Math & Exponents.
Knowing your math operation terms
Introduction to Programmng in Python
Guess the Covered Word Vocabulary: Answers to Math Problems
Program Options: 10 Minutes online
Guess the Covered Word Vocabulary: Answers to Math Problems
Objective: Be able to add and subtract directed numbers.
Computer Science 2 Hashing
Module 5 Lesson 3 Extreme Scratch Cards
Introduction to pseudocode
Basketball Drill Programming Alternatives
Computer Science 1 Online time to complete/enhance second repeat program Be able to read and write a program that uses the ‘case’ statement.
More Loops.
In a recent year, the American Cancer said that the five-year survival rate for new cases of stage 1 kidney cancer is 95%. You randomly select 12 men who.
Computer Science 1 Get out your notebook
Computer Science 2 Review the Bubble Sort
flow charts and system diagrams
Introduction to TouchDevelop
Learning about Conditional Selection
Dry run Fix Random Numbers
Program Options: 10 Minutes online
Computer Science Sorting.
Evaluate the limit: {image} Choose the correct answer from the following:
Computer Science 2 Hashing.
Computer Science 2 Tally Arrays 2/4/2016.
Computer Science 1 Online time for Graphics Program Random review
How can you make a guessing game?
Sorting Develop a sorting algorithm
Computer Science 2 More Trees.
Computer Science 1 while
Computer Science 1 For..do loop Dry Run Take notes on the For loop
Warm-up: Dry Run DIV / MOD 2nd If Then Program
How can you make a guessing game?
Warm-up: True/False Dry Run DIV / MOD 2nd If Then Program
Computer Science I: Get out your notes.
I believe the reason students have difficulty learning algebra and that most people have trouble doing math word problems is that although children are.
Mod 2 Lesson 2 Repeating with loops
Becoming a Good Test Taker
Dry Run Fix it Write a program
Objective: Be able to add and subtract directed numbers.
Computer Science 1 while
10/27/2016 Dry Run 2 Case Programs Fix it Second Case Program
Random Numbers while loop
Computer Science 1 while
Computer Science 1 Get out your notebook
Computer Science 1 Get out your notebook
Dry Run Fix it Write a program
WJEC GCSE Computer Science
This shows running the first guess number program which only allows one guess - I show the correct answer for testing purposes.
A bit of Review Review, Dry Run, Program.
Presentation transcript:

Repeat Day2 Dry Run Second Repeat Program Computer Science 1 Repeat Day2 Dry Run Second Repeat Program

Learning Objectives Be able to read a program that uses a repeat..until loop. Be able to write a program that uses a repeat … until loop.

Dry Run program petepete; var x,y,z:integer; begin x:= 24; z:= 4; repeat if (x mod 2 = 0) then writeln('Dino ', x); x := x DIV z; end else writeln('Bam bam ', x); x:= x - z; end; until (x<1); end.

Second Repeat Program Math tutor Boom! Write a program that will randomly generate an addition problem and let the user calculate and guess the correct answer until they get it correct. At the end it will show how many guesses it took to get the problem correct. Push: Add levels of difficulty Push: Include subtraction and multiplication problems. Push: Let the user pick how many problems they would like to have you ask. Boom! Write a program that has two graphic images moving randomly around the screen until they run into each other. Then show an explosion. Push: Be able to drive one of the images and have the other image chase it at half speed. (Will need to incorporate the commands keypressed, and readkey) Push: Be able to control both of the images.