Java Programming

 

         

 

Thursday, October 10th
Rally Schedule

 

Warm Up

1. What are the three programming structures that can make up all programs?

2. Give an example of each of the three programming structures from Alice.

Add the following Section 2-8 Vocabulary to your Java Definitions document:

- A graphical representation of a process model that uses shapes to represent the actions in the model.
- Executes the first set of instructions if a condition is true and the second set of instructions if a condition is false.
- Executes instructions repeatedly in a loop while a condition is true

Begin Section 2: Lesson 8 - IF and WHILE Control Structures slides.
Begin Section 2-8 IF and WHILE Control Structures practice. Save the White Rabbit Project as 2-8 Bunny Moves - be sure the bunny runs into the hedge. Save optional 1 activity as 2-8 Cheshire Cat . Save activity 2 as 2-8 Cards. Save activity 3 as 2-8 Tortoise.

Begin Section 2-8 IF and WHILE Control Structures project. Save the fish as Fish_8.

Once you have ALL animations completed you will show these to your instructor for teacher check.

 

Homework

Review Declaring Procedures and Control Statements and Functions

 

What

In this lesson, you will learn how to:
• Use the IF control statement to effect execution of instructions
• Use the WHILE control statement to create a conditional loop for repetitive behavior

 

Why

When you create an animation or a game you may want an object to execute an action based upon a decision. You can use the IF control structure to help an object make a decision. “If you encounter a rock turn left, otherwise continue going forward”. You may also want objects in your animation to execute an action while
some condition is true. “While the boat moves left wave the person’s hand”. You can use the WHILE control structure to continuously loop an action while a condition is true.

 

How

By completing the slides, quiz and practice exercises.