Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Midterm Exam 1 Review Fall 2003: Match the meaning to the program

(Back to Fall2003 Midterm Review 1)

Answers? Comments? Comments on answers?


A. copy the good part of the temple pediment to the broken part. (the program copies color from the pixels on the good part and copies them across the mirrorpoint to create the effect of a fixed temple)
B. copy the broken part of the temple pediment to the working part(the order of pixels was swapped in the bottom.
(setColor(p,getcolor(p2))
C. not sure
D. mirror input from rt to left
E. mirror input from left to rt(same as temple program)

Look more carefully at C, D, and E. Mark Guzdial


1. Mirror the input picture's leftmost 20 pixels to pixels 21 to 40: represented by E
2. Copy the good part of the temple to the broken part: represented by A
3. Copy the broken part of the temple to the working part: represented by B
4. Mirror the picture left to right: represented by C
5. Mirror the picture right to left: represented by D
One question: On the printed study guide, 4 and 5 both say mirror left to right so we assumed that 4 was right to left. -Steph and La


Sorry for the typo. Lets all assume that 4 is right to left. Looks like you guys have the right idea. Everyone else agree? Kelly Farrell

Rather than just posting answers, how about if someone expains what each code does...anyone want to give it a shot? Brittany Selden



Link to this Page