Exercise 1 The Wave, page 280
This exercise is to practice using For all in order. Create an animation that simulates some sports fans doing "the wave" -- a popular stadium activity. Create an initial scene where a coach, a student1, a skaterGirl, and randomGuy2 (People)are standing on the field in the stadium (City). All four of these people have the same subpart structure. Then create a list made up of the people objects in the scene. Use the For all in order statement to animate each person rising his or her arms to simulate "the wave."
Exercise 2 Room Remodel, page 280
Sometimes the hardest decision to make when repainting a room is choosing the color. Create a world that helps as a person decided what color they should choose for their walls and carpeting. Make a room scene by using three squares (Shapes) as the walls and add furniture (Furniture) to it. To get the look and feel of carpeting, add the moonSurface (Space) and use its texture for the floor. Create a list named wallColors (a list of type Color) and add five colors to the list. Create a second list of colors named floorColors and add five colors to the list. Use nested For all loops with the lists to show every possible combination for the wall and floor colors.
Use a wait statement to allow the viewer to see the color combination for a couple of seconds before showing the next color combination.Attachments
It was developed using Alice 2.4.2. The screenshot added is the actual program you will download. There are occasional issues with downloads using Chrome. If this happens, use a different browser for download.Purchases made from my submissions, through Cramshark, are final and there are no refunds. Thank you.