Difference between revisions of "CSC111 Final Exam 2011"
Line 299: | Line 299: | ||
* Reminder: Programs submitted after 4:00 p.m. on the due date will not be graded. Also, if you submit a program before the due date, and submit it again after the due date, the date recorded will be the latest one, and hence your program will not be graded in this case. | * Reminder: Programs submitted after 4:00 p.m. on the due date will not be graded. Also, if you submit a program before the due date, and submit it again after the due date, the date recorded will be the latest one, and hence your program will not be graded in this case. | ||
+ | |||
+ | ==Extra-Credits== | ||
+ | * 1/2 extra point if you define classes and use objects instantiated from these classes. | ||
==Advice== | ==Advice== | ||
Line 318: | Line 321: | ||
=Problem #2= | =Problem #2= | ||
− | + | [[Image:Tank2.gif|right|200px]] | |
* For this problem you have to write a graphics program showing an aquarium and fish swimming in it. | * For this problem you have to write a graphics program showing an aquarium and fish swimming in it. | ||
Line 327: | Line 330: | ||
* 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. | ||
− | * 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, | + | * 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, the selected 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 pointing. |
− | * 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 | + | * 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 need a reverse image of the fish when it swims in the opposite direction. See http://cs.smith.edu/~111a/index.html or [[Fish_for_an_Aquarium | this page]] for samples of fish images and reverse images. |
− | * Every so often fish will emit a bubble from their | + | * Every so often fish will emit a bubble from their mouth. 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. | ||
Revision as of 14:16, 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.