Alice Bee Scout Program
Class date: December 18 Objective: Write a program that uses multiple conditions. 1. a Warm up!
Modify the Zeus world to make each philosopher say something different when clicked. (Save as Modified Zeus World). Euripides says, “Come on guys, I want to take a bath.”. Plato says, “I call it Play Doe” and then extends his right hand to show the other philosophers his play Doe. Homer says, “By my calculations, Philadelphia pretzels are the optimum solid food.”. Socrates says, “Like sands in the hour glass, so are the days of our lives.” 1.b Modify the Zeus world so that if Homer gets clicked and zapped by the thunderbolt, he falls over, says “d’oh”, and then stands back up again (instead of turning color). Allow repeated clicking on Homer, which should result in his repeated falling down and getting back up.
Assignment: Help the Snowman get Home (save as) Create a game where the goal is to move the snowman through a forest to get him home to his igloo. The hazard in this game is that if the snowman gets too close to a tree, he moves back 10 meters. Add the snowman (People), a snowboard (skateboard from Skatepark – change the isShowing for the wheels to false), an igloo (Buildings), and eight pineTrees (Nature). Set the vehicle for the snowman to be the skateboard. Create an event so that the skateboard can be controlled by game player, by typing the arrow keys. Create a method for the skateboard named checkForCollisionWithTrees.
Alice Chapter 6 Lab 1. Writing your own function. Create a storyboard on a separate sheet of paper and then translate the storyboard to a program. How To Check if a Relation is in BCNF, Washington, Indiana.
If the skateboard’s distance to the pine tree is less than 3.75 meters, then move the skateboard back 10 meters. In this method, you will need to check each tree in the scene. When you have the If/Else working for one tree, then copy it for each of the other trees.
To have Alice constantly check for collisions with the trees, create a When the World Starts event. Then change it to While the World is Running (a right click on the event pops up a menu so it can be changed).
In the during section of the While the world is Running event, call the checkForCollisionWithTrees. In order to check whether the player has won the game, create a method named checkIfHome for the skateboard. If the skateboard gets close to the igloo, display a 3D text object that proclaims “I’m Home!” To make the 3D text flash, add a loop that repeatedly sets the 3D text isShowing property to false and then true. Class date: December 16 Objective: To write your own Boolean function to be used as part of the execution control mechanism. Review terms: Boolean function “If/Else”, vertical distance, and, 2. Practice assignment #1: Practice Turns. Create a skater world as pictured below., as designed and created in e nhancedCleverSkater.
(should be in your network file, not? Fox’ outbox to find Enhanced cleverSkater).
For this world, write a program to make the skater practice her turns on the ice. First place the skater 1 meter from the second cone, facing forward. She then skates forward toward the first cone (a sliding step). When she gets close, she should skate halfway around the cone and end up facing the other way to skate back toward the other cone. Next, have the skater skate toward the other cone and when close enough make a turn around it. In this way, the skater should complete a path around the two cones. REMEMBER WHAT TODAY’s LESSON IS ABOUT!-practice our new concepts!!!
Hint: To find out whether the skater has gotten close enough to do a half-circle turn around the cone, you can use the is within threshold of object function for the enhanced CleverSkater. (The phrase is within threshold of object evaluates to true if the second object is within the specified distance of the first object.) Another possibility is to use the distance to function and the relational operator a. Class Date: December 12 Objective: Participate in National Computer Science Education Week’s “One Hour of Code”! You may select which “hour of code” computer science celebration to participate in.
We have three options!!! And enter our class using our section-code: Mrs. Fox will provide your section code in class! Join our class: Semester 1 Period 2 Red enter: KNIRKP 1.1 Click on your user name in the top right corner. Click on my progress and work through the activities. It looks like a lot, don’t worry-much of this programming is similar to Alice-“drag and drop.” If you choose #1.1, you must complete all exercises to win a prize! OR 1.2 After you have signed in to code.org, created your account and joined our class, click on LEARN (tab at top of page, in the blue area).
Skip the tutorial for beginners!. (Java). (Java).
Bee Scout Show
Each of these projects should take you about an hour. They are code-based (no drop and drag). Interesting stuff 3. Create an account. Fox will provide your section code in class! Join our class: Semester 1 Period 2 Red 1314 enter: PPVFVA This is a “key in the code” style of programming. Complete the following activities:.
How many points can you collect from the Khan Academy?.Next Friday, December 20, we will share our learning from our Computer Science Education Week Activities. Be prepared to share what you learned. THERE WILL BE PRIZES!
Class date: December 9 Objectives: Explain what functions do, practice writing a program where you call a built-in function in a method 1. Review: QUIZ. What is a function in Alice?. How does an Alice function differ from an Alice method?.
Explain this analogy: How is a Function like an ATM machine? Class discussion: (1) Quiz review and (2) last class reflection. Using a built-in function in a method: 6. Needing to write your own function: balls bounce, balls roll 7. The return statement?: every function has a return statement, all functions return some information. Calling the function Practice (Assignment activities) 1. Rotating Tires on a Car or Truck Create a new world with a car or truck (Vehicles).
Write a program to make the four wheels of the car turn forward as the car moves forward. The code should be very similar to the code used to make the ball roll forward (see the realisticRoll method in Mrs. Fox’s Outbox). Bee Scout It has been a hot, dry summer and a hive of bees is in desperate need of a new supply of pollen. One bee (Animals/bugs) has ventured far rom the hive to scout for new pollen sources.
A natural place to look is near ponds in the area. Set up the initial scene with a circle (shapes) flat on the ground and colored blue to look like a pond.
Add plants, trees, and other natural scenery including some flowers (Nature). Be sure the bee is located somewhere around the edge of the pond.
Honey Bee Scout
Write a program to animate the bee scouting the edge of a pond for flowers that are in bloom. The bee is to fly around the perimeter o the pond.
Write a method to move the bee scout around the perimeter of the pond in which the circumference of the circle is used to guide the motion (Yes, asSeenBy could be used–but that is not the point of this exercise.) The formula for computing the circumference of a circle is pi X the diameter of the circle (pond). Then have the bee fly around the perimeter of the pond by moving forward the amount of meters returned by the circumference function while turning left one revolution. Class date: December 5 Objective: You will use functions in methods and explain how to write your own function as a method that returns a value. “I know what you’re thinking about,” said Tweedledum: “but it isn’t so, nohow.” “Contrariwise,” continued Tweedledee, “if it was so, it might be; and if it were so, it would be: but as it isn’t, it ain’t. That’s logic.”.Minute for Mission. During the holiday season (Thanksgiving through New Year) most of us reflect and look for ways to show our gratitude. This year, will be visiting HHHS.
Young @ Heart is a world traveling senior citizen singing group that gives back with each performance they give. Our is bringing them to HHHS as a gift to our community on December 15. NEEDED: Teens to escort Young @ Heart seniors on December 15, 1-5 PM. PLEASE CONSIDER VOLUNTEERING!
– Coldplay – Ramones – Talking Heads – Raitt & Prine Back to business: Today’s objective: You will use functions in methods and explain how to write your own function as a method that returns a value. Functions review: (1) We have been using built-in functions, (2) A function receives value(s), performs some computation on the value(s), and returns (sends back) a value (3) The type of function determines what type of value you get back (number, specific object, color, Boolean, string, etc.) 2. Abstraction When you use an ATM, you can think about getting the balance in our account-not about all the operations that are going on inside the machine. In the same way, we can call a function in our program to perform all the small actions, while we just think about what answers we are going to get. Like methods, functions are an example of abstraction-collecting lots of small steps into one meaningful idea to allow us to think on a higher plane.
New: (Using a built-in function in a method, the need to write your own function, writing a new function, the return statement, calling a function!) (1) Set up a scene with a ball and a tennis net. Make sure the ball is one meter from the net. (2) We want to bounce the ball over the tennis net. Do not be deceived. This is not as east as it sounds because we cannot easily tell just by looking at the ball what its orientation is. In other words, we don’t know “which way is up” in terms of the ball’s sense of direction. The ball should move up and forward and then down and forward.
(3) Ball’s orientation? (4) Write a method to bounce the ball over the net. Since two objects are involved, write a world-level method named ballOverNet. (5) Create your storyboard.
TPS (6) We do not know how far up to move the ball to clear the net. We can use a built-in function for the tennisNet to determine its height and then use that as the distance the ball moves up (and then back down). Drag the toyball’s move tile into the editor and select 1 as a default distance. Drag the tennis Net’s height function tile on top of the 1. 4. The need to write your own function Sometimes when you want to call a function, none of the built-in functions will work for what you want to do. This is where you need to write your own function.
(1) Another game action involves rolling a ball along the ground. We want a realistic motion rather than a slide. The ball must simultaneously move and roll. Create a class-level method called realisticRoll. Ball activity (slides 10-11) Parameters (slide 12): distance/(II.diameter) Writing a new function Since we are concerned only with a ball rolling (our class example), and no other objects are involved, we can write an object-level function. To write your own object-level function, select the object in the Object tree (for a world-level function you would select the World).
In the functions tab, click on the create new function button. A popup New Function box allows you enter the name of the new function and select its type. The new function is categorized by the type of information it returns. (Remember Number, Boolean, Object and Other-like String, Color, and Sound?) Finally, a click on the OK button creates an editor panel where you can write the code for the function. The Return statement (slide #13) Every function must have a Returnstatement. The reason is that all functions return some information. Alice automatically adds a Return statement at the end, reminding you that your function must return some information.
You cannot remove the Return statement. Here is what we want to figure out: How many revolutions does the ball have to make to move a given distance along the ground? The number of revolutions depends on the distance traveled by the outside (circumstance) of the ball in a single revolution, so we use the formula: number of revolutions = distance/(diameter. 3.14) We need three pieces of information: the distance the ball is to roll, the diameter of the ball, and pi-3.14.
You will need three pieces of info. a parameter will be used to send in the distance the ball is to roll. the built-in function toyball’s width will be called to get the diameter.
The symbol for pi is a constant value. Pi represents the ratio of te circumference of a circle to its diameter. Calling a functioncoming up Assignment: Adding Acrobats to the Rolling Ball Begin by using (or creating) the rolling ball world as we did in class today.
Add two objects/acrobats of your own choosing. Position them on top of the ball, one on top of the other.
Resize the ball to twice the size as it started out. Write a program for a circus act, where the acrobats move with the ball, staying on top of it, as the ball rolls. The acrobats should put their arms up halfway, to help them balance as they move along with the rolling ball. Hint: Use the scene editor quad view to be certain the acrobats are standing directly on top of one another and are centered on the ball. Also, use pull-down menu methods to be sure that the acrobats and the ball all have the same orientation. Class date: December 3 Objective: Catch-up on back work. Last week I promised you today for make-up, catch-up.
Last week I sent the following email to your parents: Parents, My wish for you and your family is a happy and stress free Thanksgiving break from school. I have updated the grade book and PowerSchool is current. At the start of the second quarter, I spoke with most of you to explain a change in my PowerSchool management. I am putting “0” in for all assignments that have not been handed in, instead of leaving them blank as I did last quarter. Students are encouraged to complete all assignments, I will enter the grade, “no harm, no foul,” when the assignment is turned in. I have changed my policy because 2 nd quarter is hard to manage in the best of school years. This one, with Thanksgiving being only 10 days into the second quarter and winter break so close to Thanksgiving, there seems to be little time for catching up.
I want your child to be on top of this time crunch so he/she can manage his/her assignments appropriately. Your child cannot work on our programming assignments at home over break. Please encourage your child to relax and have fun during this long weekend. Our first class after the break will be devoted to catching up. After that we will be moving ahead. I will be available during 3B and 4A for help and after school by appointment.
Our classroom website: Happy Thanksgiving. Today is your day to shine. Work hard, Thursday we move on.
Bee Scout Cartoon
To Alice Bee Design Independant high end tailor of vintage and couture garments in Washington Heights, NYC. Specialities include design and construction of wedding gowns, evening wear, tailored women's suits and pants and re-creation of existing garments all with a meticulous attention to detail. Alice will take you through the design process, from your first idea, adding her expertise and exquisite taste, to create your very own custom piece. The satisfaction of wearing a custom garment that fits your body perfectly, and the knowledge that no-one else has such a piece, is second to none! With a BA(Hons) Degree from Edinburgh College of Art, Scotland, having sewed from the age of four and with the experience of being a Broadway stitcher and dresser since 1998, Alice brings a unique set of skills to the community.
Be a leader, be a head-turner, be fabulous!