Study Guide For Test Chapter 5, 6,& 7 Test is Friday, May 15th.

Slides:



Advertisements
Similar presentations
Introduction to Macromedia Director 8.5 – Lingo
Advertisements

Microsoft® Small Basic
As you come in…  Sign in (in back) and pick up  Badge  Name Card – write your first name LARGELY on back  Log in:  Launch/Start Alice  Any questions?
Events Chapter 7. Interactive Real world is interactive User determines order of actions instead of programmer.
CHAPTER 5: Repetition Control Structure. Objectives  To develop algorithms that use DOWHILE and REPEAT.. UNTIL structures  Introduce a pseudocode for.
CS0004: Introduction to Programming Repetition – Do Loops.
Intro to Programming Algebra-Geometry. Computer Programming? What is programming? The process of writing, testing, and maintaining the source code of.
Repetition: Definite Loops Alice. Repetition In many kinds of animations, especially simulations and games, some actions happen again and again. Example:
Introducing While loops (and random numbers too) Alice.
CS001 Introduction to Programming Day 3 Sujana Jyothi
An Object-Oriented Approach to Programming Logic and Design Chapter 6 Looping.
CS320n –Visual Programming Interactive Programs Mike Scott (Slides 5-1)
Interaction: Events and Event Handling
Programming: Simple Control Structures Alice. Control Statements We have been using Do in order and Do together to control the way instructions are executed.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley This week: Whew!!! The last homework was tough! The homework for this week.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Alice: A Visual Introduction to Programming First Edition.
Working with Numbers in Alice - Converting to integers and to strings - Rounding numbers. - Truncating Numbers Samantha Huerta under the direction of Professor.
Execution Control with If/Else and Boolean Functions
Execution Control with If/Else and Boolean Questions Part 1 Alice.
CompSci 4 Chap 5 Sec 1 Oct 13, 2005 Prof. Susan Rodger Note: thanks to Wanda Dann and Steve Cooper for slide ideas.
Interaction: Events and Event Handling
Review For Test Chapter 4 & 5 Test is Wednesday, January 27th.
Programming & Scratch. Programming Learning to program is ultimately about learning to think logically and to approach problems methodically. The building.
Introduction to Arrays. definitions and things to consider… This presentation is designed to give a simple demonstration of array and object visualizations.
Events Chapter 7 Part 2. While a Key is Pressed Event Specialized event An event occurs when you press a key and continues until you take your finger.
Today’s Agenda 1.Collect Pre-Lab 5 2.Collect Alice project storyboards 3.Events 4.Dummy Objects 5.Assign pair programming teams and meet upstairs for Lab.
Four Fundamental Pieces Instruction Control Structure Function Expression.
Interactive Programming Sec 49 Web Design. Objectives The student will: Understand the difference between movie mode and an interactive program Understand.
Recursion Alice. Repetition In some situations, we don’t know exactly how many times a block of instructions should be repeated. All we know is that repetition.
© Jalal Kawash Programming Peeking into Computer Science 1.
CS320n –Visual Programming Introduction to Recursion (Slides 8-1) Thanks to Wanda Dann, Steve Cooper, and Susan Rodger for slide ideas.
Interactive Programming Alice. Control of flow Control of flow -- how the sequence of actions in a program is controlled. What action happens first, what.
Programming: Putting Together the Pieces Built-in Questions and Expressions Alice.
Chapter 15 JavaScript: Part III The Web Warrior Guide to Web Design Technologies.
Review for test! Alice Chapter 1&2 Test is tomorrow! - March 26 th March 25th.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4: Events Programming with Alice and Java First Edition by John Lewis.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Alice: A Visual Introduction to Programming Third Edition.
Programming: Putting Together the Pieces Built-in Functions and Expressions Alice.
Interactive Programming Alice. Control of flow Control of flow -- how the sequence of actions in a program is controlled. What action happens first, what.
CS320n –Visual Programming Definite / Counted Loops (Slides 7-1) Thanks to Wanda Dann, Steve Cooper, and Susan Rodger for slide ideas.
Repetition: Definite Loops Sec 53 Web Design. Objectives The Student will: Understand loops and why they are used Understand definitive loops Know how.
5 Event Handling Interactive Programming Suggested Reading Interaction: Events and Event Handling, Supplemental Text for CPSC 203 Distributed this term.
CompSci 4 Chap 6 Sec 2 Sep 30, 2010 Prof. Susan Rodger “All your troubles are due to those ‘ifs’,” declared the Wizard. If you were not a Flutterbudget.
Programming: Simple Control Structures Sec 46 Web Design.
February 25,  The BDE(Begin-During-End) event.  Worksheet – Exercise # 9 Instructions  2nd Period Test.
Repetition: Definite Loops Alice. Repetition In many kinds of animations, especially simulations and games, some actions happen again and again. Example:
CompSci 4 Chap 5 Sec 1 and 2 Oct 14, 2010 Prof. Susan Rodger.
IST 210: PHP LOGIC IST 210: Organization of Data IST210 1.
Flow Control in Imperative Languages. Activity 1 What does the word: ‘Imperative’ mean? 5mins …having CONTROL and ORDER!
Tips & Techniques 6 Random Numbers and Random Motion Alice.
CS320n –Visual Programming Execution Control with If / Else and Boolean Functions (Slides 6-2-1) Thanks to Wanda Dann, Steve Cooper, and Susan Rodger for.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
Introduction to Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
Phase 3: Game Creation. Phase 3: Game Creation Outcomes (Slide 1) I can create a flowchart to solve a problem, for example to make a cup of tea. I can.
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.
Collision Theory and Logic
Programming & Scratch.
Collision Theory and Logic
Event-driven programming
Programming: Simple Control Structures
Programming: Simple Control Structures
Introduction to Events
Learning Java with Alice 3.0 Game Design Kathy Bierscheid
HAPPY NEW YEAR! Lesson 7: If-statements unplugged
Design and Implementation
Programming: Simple Control Structures
ICT Programming Lesson 3:
How to allow the program to know when to stop a loop.
Decision Statements.
Presentation transcript:

Study Guide For Test Chapter 5, 6,& 7 Test is Friday, May 15th

Today’s Agenda:  Review Vocabulary Words  Review main points from Chapter 5 Chapter 6 Chapter 7  Questions & Answers about the test.  To Do List: Finish working on projects!  Homework: Study for Test! It’s Monday.

Vocabulary Words – Chapter 5  Event An event is something that happens. In response to an event:  an action or a sequence of many actions is carried out.

What is an Event?  Every time the user clicks the mouse or presses a key on the keyboard to send a signal to Alice about what to do next. The mouse click or key press is an event!  In this chapter we learn the mechanics of how the user create an event and how the program responds to the event.  Example: think of a video game – A Car Race. The scene is determined on how skillful the driver is steering the car.

Vocabulary Words – Chapter 5  Event handling method As a programmer you respone to an events. The event must be linked to the responding method. The method is now said to be an event handling method.

Events – How many are there?

Vocabulary Words – Chapter 5  Incremental development Use when testing a program! How?  Write a method and test it, write a method and test it, until the program is completed. This is incremental devleopment!

Testing!  How to test? Just save the world and press the PLAY button.  Tip: It is important to test event handling methods as they are developed. Write a method and test it, write a method and test it, until the program is completed.  Why? Incremental development! The advantage is in making it easier to debug your program. When something isn’t working, it can easily be fix before it causes bigger problems elsewhere in your program.

Vocabulary Words – Chapter 5  Interactive (of a computer program or system) interacting with a human user, often in a conversational way, to obtain data or commands and to give immediate results or updated information: For many years airline reservations have been handled by interactive computer systems.

Interactive Program –vs- Non-Interactive Program What is the main difference?  Interactive The sequence of actions is determined at runtime! Occurs when:  The user clicks the mouse  Presses a key on the keyboard  Objects in the scene move (randomly or guided by the user)  User can create some conditions like a collision.  Non-Interactive The sequence of actions is pre-determined by programmer Programmer designs a complete storyboard Programmer writes the program code for the animated actions. Every time the program runs the same sequence will occur.

Vocabulary Words – Chapter 6  Function Allows you to check certain conditions within a world while the animation is running. Use a function to ask a questions. Purpose of a function is to return a value. A Value returned by a funciton can be a number, an object, a Boolean (true or false) or some other type. Can be a built-in function! Provided by Alice.  Used to provide information for instructions in a method. Can be your own function! You write the coding.

Vocabulary Words – Chapter 6  If/Else statement Is a statement that makes a decision based on the value of a condition as a program is running. Do this Action! Do something else If True? TF

Vocabulary Words – Chapter 6  Integer Are whole numbers! Have no digits to the right of the decimal point.

Vocabulary Words – Chapter 6  Logical operator There are three of them!

Vocabulary Words – Chapter 6  Random number Play a big role in certain kinds of computing applications. Are used  In creating secure encryptions for transmission of information on the Internet.  In various kinds of scientific simulations  To create ‘what-if’ situations in weather simulation programs. Take a look at the Pet penguin sliding on the ice example on page 192 (new book).

Vocabulary Words – Chapter 6  Relational operator There are six of them! Computes a true or false value based on the relationship between two values.

Vocabulary Words – Chapter 6  Return statement Every function must have a Return statment because all functions return a value. Alice automatically adds a Return statement at the end, reminding you that your function must return some information. You cannot remove the Return statement.

Vocabulary Words – Chapter 7  Count Is used to describe the number of times a loop repeats.

Vocabulary Words – Chapter 7  Definite loop Is loop where you as the programmer know exactly how many times a block of instructions should be repeated.

Vocabulary Words – Chapter 7  Indefinite loop Is loop where you as the programmer do not know how many times a block of instructions should be repeated. It’s a While loop!

Vocabulary Words – Chapter 7  While Is also know as a conditional loop. Will repeat a block of instructions where we do not know exactly how many times a loop should be repeated. All you need to know is the condition that determines whether the loop will be repeated. Example: While some condition is true perform instruction(s)

Vocabulary Words – Chapter 7  Infinite Loop Is a loop that will continue to execute in a never-ending cycle. It is often an program error!

What will be on the test?  Chapter 5 – Interaction!  Chapter 6 –Functions and If/Else  Chapter 7 – Repetition! Loops/While Loops  You can use your notes – but not this powerpoint!