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

Take-Home Exams-Spring 2004

Take Home Exams will be posted here on the start day for each (see Syllabus and Lecture Slides-Spring 2004).

Take Home Exam #2:


When printers work with an image, they often have to generate separations where only the cyan, magenta, yellow, and black (CMYK) inks are on each page. You're to do something similar. For Take Home Exam 2, write a function that will take as input a directory and generate a separations.html page that will show miniature versions of each "JPG" (JUST lowercase ".jpg") file in the directory: In its original color, then just the red (green and blue zeroed out), then just the green, then just the blue.

Your resultant page will look something like this (click on the image to see it full-size):


You will do this by:

You will, of course, be generating a bunch of files in doing this. Your directory will go from looking like this:


To this (after running your program):


The solution that we wrote generates HTML like what you see at the bottom of this page.


This is a NON-COLLABORATIVE ACTIVITY! You may not talk to anyone about their code, nor look at anyone else's code, nor allow anyone to see your code. This is a TAKE HOME EXAM. It is an "open book" exam. You may use your book, any slides, any material in the CoWeb, and any programs you've written (even with others). (I'll bet Homework 4 would be useful for this one...)

Ask questions on Spring 2004 Take Home Exam 2 Questions Page but be sure to ask questions only about objectives and process. You are welcome to ask questions about any of the programs in the book or in the slides, or any of the topics in the class (e.g., "I don't understand mirroring – can you help me go through it again?") but you cannot ask anyone (even the TA's or teacher) about your own solution. DO NOT POST ANY OF YOUR CODE ONTO THIS PAGE IN ASKING QUESTIONS!

Turn in your program via JES as "exam2". When you turn in your exam, you are to enter into the Comment area the statement: "I did not provide nor receive any aid on this exam." IF YOU CANNOT MAKE THAT STATEMENT TRUTHFULLY, DO NOT SUBMIT YOUR EXAM! ANY EXAM WITHOUT THAT STATEMENT WILL NOT BE GRADED.


Example Solution HTML:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transition//EN" "http://wwww.w3.org/TR/html4/loose.dtd"><html><head><title>Separations from C:\Documents and Settings\Mark Guzdial\My Documents\mediasources\pics</title></head><body><h1>Separations from C:\Documents and Settings\Mark Guzdial\My Documents\mediasources\pics </h1>
<p>Filename: top.iraq.un.ap.jpg<a href="top.iraq.un.ap.jpg"><image src="top.iraq.un.ap.jpg" height=100></a>
<a href="red_top.iraq.un.ap.jpg"><image src="red_top.iraq.un.ap.jpg" height=100></a>
<a href="grn_top.iraq.un.ap.jpg"><image src="grn_top.iraq.un.ap.jpg" height=100></a>
<a href="blu_top.iraq.un.ap.jpg"><image src="blu_top.iraq.un.ap.jpg" height=100></a></p>
<p>Filename: students.jpg<a href="students.jpg"><image src="students.jpg" height=100></a>
<a href="red_students.jpg"><image src="red_students.jpg" height=100></a>
<a href="grn_students.jpg"><image src="grn_students.jpg" height=100></a>
<a href="blu_students.jpg"><image src="blu_students.jpg" height=100></a></p>
<p>Filename: students-more.jpg<a href="students-more.jpg"><image src="students-more.jpg" height=100></a>
<a href="red_students-more.jpg"><image src="red_students-more.jpg" height=100></a>
<a href="grn_students-more.jpg"><image src="grn_students-more.jpg" height=100></a>
<a href="blu_students-more.jpg"><image src="blu_students-more.jpg" height=100></a></p>
<p>Filename: students-on-tour.jpg<a href="students-on-tour.jpg"><image src="students-on-tour.jpg" height=100></a>
<a href="red_students-on-tour.jpg"><image src="red_students-on-tour.jpg" height=100></a>
<a href="grn_students-on-tour.jpg"><image src="grn_students-on-tour.jpg" height=100></a>
<a href="blu_students-on-tour.jpg"><image src="blu_students-on-tour.jpg" height=100></a></p>
<p>Filename: top.canal.aftermath.ap.jpg<a href="top.canal.aftermath.ap.jpg"><image src="top.canal.aftermath.ap.jpg" height=100></a>
<a href="red_top.canal.aftermath.ap.jpg"><image src="red_top.canal.aftermath.ap.jpg" height=100></a>
<a href="grn_top.canal.aftermath.ap.jpg"><image src="grn_top.canal.aftermath.ap.jpg" height=100></a>
<a href="blu_top.canal.aftermath.ap.jpg"><image src="blu_top.canal.aftermath.ap.jpg" height=100></a></p>
</body></html>

Take Home Exam #1:


Below is the base image that you are to manipulate. (You'll need to download this picture and store it in your media directory. Right click on this picture, choose "Save As," then save it in your media directory.)


Uploaded Image: BaseCanvas.jpg

You are to turn it into this:

Uploaded Image: FinishedCanvas.jpg


You will do this by:



This is a NON-COLLABORATIVE ACTIVITY! You may not talk to anyone about their code, nor look at anyone else's code, nor allow anyone to see your code. This is a TAKE HOME EXAM. It is an "open book" exam. You may use your book, any slides, any material in the CoWeb, and any programs you've written (even with others). (I'll bet Homework 2 would be useful for this one...)

Ask questions on Spring 2004 Take Home Exam 1 Questions Page but be sure to ask questions only about objectives and process. You are welcome to ask questions about any of the programs in the book or in the slides, or any of the topics in the class (e.g., "I don't understand mirroring – can you help me go through it again?") but you cannot ask anyone (even the TA's or teacher) about your own solution. DO NOT POST ANY OF YOUR CODE ONTO THIS PAGE IN ASKING QUESTIONS!

Turn in your program via JES as "exam1". When you turn in your exam, you are to enter into the Comment area the statement: "I did not provide nor receive any aid on this exam." IF YOU CANNOT MAKE THAT STATEMENT TRUTHFULLY, DO NOT SUBMIT YOUR EXAM! ANY EXAM WITHOUT THAT STATEMENT WILL NOT BE GRADED.

Links to this Page