Assignment 1
Introduction to Alice
In Lab
Work individually in this week's lab and programming assignment.
Login to your machine and start Alice by executing Start > Programs > Departmentally Sponsored > CSCI > Alice.
Follow the directions in Appendix A of your Alice text: Using Alice, Part I and Part II. Skip the optional web gallery section (the whole gallery is on the STC computers).
Do exercise 1.1, Island World, and save the world. This exercise "program" just creates a scene setup, without executable program code. Still, be sure as in every program you submit to include as the first element in the program area a comment identifying the exercise ("Lab 1" this time), your name, your username, and your lab's starting time.
In Appendix B, read the Searching the gallery, Copy and paste, Deleting code, and Printing sections.
Do exercise 2.4, Circling Fish. Use your exercise 1.1 world. Note an error in the text (also listed in the course Text Errata page): in line 5, replace "have the fish move" with "have the fish turn." To make the fish jump nicely, move it forward at the same time it is turning backward, forward, and then backward again.
If there is time, do exercise 2.5, Tortoise Gets a Cookie.
At least 15 minutes before the end of the lab, submit the worlds you have created by attachment to Lab 1 on Oncourse. Carefully following the instructions in System Note 1.1 (on the course web System Notes page). While you are there, also read at least notes 1.2, 2.2 and 2.3 if you have not already done so. If you are unable to make a submission, report this to your lab instructor immediately.
If you submit your lab work as the assignment, you will not be able to submit the assignment later. Always be careful to submit lab work via an Oncourse assignment entry that begins with Lab.
Do not worry if you have not finished the lab. Submit whatever you have done before the end: you will get lab credit if you have made a good effort. It is a good idea to try to finish it later for your own benefit, but do not submit after the end of the lab.
As noted on the course Syllabus page: Submitting a laboratory assignment other than while attending lab is considered academic dishonesty. If you miss a lab, you are strongly encouraged to do the lab's assignment, but do not submit it.
You may leave after making your lab submission, but you are strongly encouraged to take advantage of easy access to help from the lab instructor by starting work on the new programming assignment. In any event, always be sure you at least read the assignment carefully and get clarification before leaving lab if there is anything you don't understand
Assignment
Create a world where Mana (People) has a magnet (Objects) held out in her left hand. Add five metalic objects (Objects folder in Local, CD, or Web gallery) of your choice to the world and one by one have Mana point the magnet at each object. As Mana points the magnet toward an object, have the object move to the magnet. Have the last object be very large (perhaps a car from the Vehicles folder) so when Mana point at it, she instead is pulled toward the object while saying something like "Whoa!" or "Yikes!".
Hint: See Tips and Techniques 2 for information on how to (1) use the vehicle property for help in making the magnet move in coordination with Mana's hand, and (2) use the move toward instruction to make an object move toward another object. Also, you may wish to review the notion of center of an object, as described in Chapter 1, Section 2.
[This is exercise 2.6: that's excercise number 6 in chapter 2 of the full Alice text (but not the brief edition).]
Before starting to write program code, write a textual storyboard as comments in the program area. Then fill in the code that performs each storyboard element (scene) under its comment. Your completed program will be considered to have poor style if it does not include these comments.
Remember, the first line of your program must always be a comment identifying the exercise, your name, your username, and your lab start time.
Submit your world as an attachment to Assignment 1 on Oncourse, as you did in lab. Remember to always check each submission step as explained in System Notes 1.1.