Difference between revisions of "CSC111 Final Exam 2011"
Line 328: | Line 328: | ||
* When the user clicks the mouse on the image of the aquarium (anywhere on the graphics image), the program displays two different fish, randomly picked from a collection of fish maintained by your program. The fish are immobile and the user clicks on the one she wants to keep in the aquarium. As soon as she has done so, that fish reappears at some other point of the aquarium and starts swimming. | * When the user clicks the mouse on the image of the aquarium (anywhere on the graphics image), the program displays two different fish, randomly picked from a collection of fish maintained by your program. The fish are immobile and the user clicks on the one she wants to keep in the aquarium. As soon as she has done so, that fish reappears at some other point of the aquarium and starts swimming. | ||
* Fish swim in a forward direction, i.e. toward the direction where their nose is. | * Fish swim in a forward direction, i.e. toward the direction where their nose is. | ||
− | * When fish disappear on one side of the screen, '''they do not wrap around''' but reappear swimming from the exact place where they disappeared, but this time swimming in the opposite direction. You will find that now each fish image that we have used in the recent past has also a reverse image. You'll have to use the reverse image when the fish is changing direction. See http://cs.smith.edu/~111a/index.html for samples of fish images. | + | * When fish disappear on one side of the screen, '''they do not wrap around''' but reappear swimming from the exact place where they disappeared, but this time swimming in the opposite direction. You will find that now each fish image that we have used in the recent past has also a reverse image. You'll have to use the reverse image when the fish is changing direction. See http://cs.smith.edu/~111a/index.html or [[Fish_for_an_Aquarium | this page]] for samples of fish images. |
* Every so often fish will emit a bubble from their mouse. This bubble, like the bubbles coming from the sand at the bottom of the tank, climb up to the surface with slight horizontal movements as they move. | * Every so often fish will emit a bubble from their mouse. This bubble, like the bubbles coming from the sand at the bottom of the tank, climb up to the surface with slight horizontal movements as they move. | ||
* Bubbles should start small, with a radius of, say, 2 or 3 pixels, and grow bigger as they climb up to the surface. | * Bubbles should start small, with a radius of, say, 2 or 3 pixels, and grow bigger as they climb up to the surface. | ||
+ | |||
+ | ===Getting fish and images in your 111a-xx Beowulf account=== | ||
+ | |||
+ | * If you want to work in your beowulf account, you'll need to import fish and tank images into your account. It's very simple to to so. All you need is the url of the image you want, and then use the command '''wget''' to ''web-get'' the image in your account: | ||
+ | |||
+ | * For example, assume the fish you want is at URL http://cs.smith.edu/dftwiki/images/9/9a/Fish16r.gif | ||
+ | * Then, at the Linux prompt, type the following command: | ||
+ | |||
+ | wget wget http://cs.smith.edu/dftwiki/images/9/9a/Fish16r.gif | ||
+ | |||
+ | * and you should have a file called Fish16r.gif in your directory. | ||
+ | |||
===Programming=== | ===Programming=== |
Revision as of 13:54, 12 December 2011
Final Exam
This exam is given under the rules of the honor code at Smith College. It is open-books, open-notes, and open-Web. The work on this exam is to be done individually, and assistance from anybody other than the instructor is forbidden. TAs are not available to answer questions, and will be asked not to do so. Pair-programming is not allowed.
Any program section greater than a function used and taken from a Web site other than our CSC111 Web page should be cited in the header of your program, or the header of the function.
Questions can only be asked to your instructor, and only via email. Email questions will be returned with an answer to the whole class.
The exam is due on 12/22/11 at 4:00 p.m. Any file received after this date will not be graded. You will need to submit the exam using the rsubmit command, or using a submit Web page, similarly to the way you have submitted homework assignments this past semester.