Difference between revisions of "CSC111 Final Exam 2011"
(Created page with "=Final Exam= <bluebox> 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...") |
|||
Line 8: | Line 8: | ||
Questions can only be asked to your instructor, and only via email. Email questions will be returned with an answer to the whole class. | 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. | + | 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 [http://cs.smith.edu/~111a/submitFinal.htm submit Web page], similarly to the way you have submitted homework assignments this past semester. |
</bluebox> | </bluebox> | ||
Line 316: | Line 316: | ||
==Requirements== | ==Requirements== | ||
+ | ===Behavior=== | ||
* When the program starts, there are no fish in the aquarium | * When the program starts, there are no fish in the aquarium | ||
* Bubbles may rise from time to time (randomly) from the bottom of the tank, up to the surface. Bubbles are simply white circles that climb up, with random horizontal movements as they climb. | * Bubbles may rise from time to time (randomly) from the bottom of the tank, up to the surface. Bubbles are simply white circles that climb up, with random horizontal movements as they climb. | ||
Line 321: | Line 322: | ||
* 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. See http://cs.smith.edu/~111a/index.html for | + | * 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. |
+ | * 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. | ||
+ | |||
+ | ===Programming=== | ||
+ | * You must divide your program into several files. The classes should be in one file called '''final2class.py''', and the main program should be called '''final2.p'''. | ||
+ | * You must use classes to represent the fish, and the school of fish. You may want to uses one or several classes for the bubble, but this is not required. | ||
+ | |||
+ | ==Submission== | ||
+ | * Submit all your files (including the class file, and the gif images for the tank and fish) using the rsubmit command on beowulf: | ||
+ | |||
+ | rsubmit final final2.py | ||
+ | rsubmit final final2class.py | ||
+ | rsubmit final Tank2.gif | ||
+ | rsubmit final fish14.gif | ||
+ | rsubmit final fish14r.gif | ||
+ | etc... | ||
+ | |||
+ | :or use the http://cs.smith.edu/~111a/submitFinal.htm form. Note: only gif files are accepted for images. | ||
Revision as of 13:22, 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.