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

Spring 2004 Take Home Exam 1 Questions Page

REMEMBER! 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).

On this page, you can ask clarifying questions and questions about topics in the course. YOU MAY NOT ASK ABOUT YOUR PROGRAM. DO NOT POST ANY PROGRAM CODE ON THIS PAGE!

I am trying to use the media tools, i do openPictureTool(show(makePicture(pickAFile()))), but when i click in the picturetool menu it tells me 'there are no pictures to examine'. how do i do to fix this??????
This has been answered previously, on the HW1/HW2 Questions page. MediaTools can only let you see NAMED pictures. You can't open the picture tool on a picture that you haven't named in the Command Area. Mark Guzdial

Is negatizing somewhere in the slides?????
Yes, and in the book (p. 68). That part of the book is even in the parts made available here in the CoWeb on the Textbook Chapters page. Mark Guzdial

So do we have to return only the picture, only the code, or both???????
You turnin your program. Your function returns the picture. Mark Guzdial

When I try to save the picture, my computer assigns the file a .bmp extension. How do I turn this into a .jpg file. Also, can the jpeg base file name have spaces inbetween words i.e. .../Take Home Exam.jpg Clarke Collins

That's very weird, Clarke – I've never seen it do that. I do see that, in Internet Explorer, that there is an OPTION to choose JEPG or BMP. Choose JPEG. If you can't get it to work, email your TA or me, and we can email you the JPEG. JPEG files can have spaces on your disk, but not on the CoWeb. Mark Guzdial


May we utilize getMediaPath and the TA setMediaPath with the image?
I hope I can ask this question. :-/
Of course! I will make that part of the exam. Mark Guzdial

when i save the image to my computer, it keeps saving it as a ".jpe" file even though i am choosing to save it as a JPEG. what is the difference between this and ".jpg"?
Should be the same thing. Mark Guzdial

Can we still submit the exam more than once and the last one submitted will be graded, like our labs and homeworks?
Yes. Mark Guzdial

Are we supposed to turn in our resultant image as an attachment with our program? Kristin Noell
No. Mark Guzdial

It says to make the comment about not receiving aid in the comment area. Does this mean the program area with a # for a comment? Or in the notes to the TA part? I did both, but if I am completely wrong and need it somewhere else, then please let me know.
The notes to the TA part. Mark Guzdial

When I try to show the picture I saved (as a .jpg) off the site, it gives the error message:

load image failed.
Was unable to load the image in C:\mediasources-for-Fall2003\mediasources\pic.jpg
Make sure it's a valid image file.

why is it doing that? also, are we supposed to use the 7.5x9in canvas?
It may be that you saved the file as BMP, but named it JPG. That means that the system will be confused. Email your TA to have the picture sent to you if you can't download it. And as the person says below, you're not supposed to use any canvas. Mark Guzdial

although my program seems to execute properly (I get a correct final image), when i run exam1 in the bottom area i get a note for "media.Picture instance at (insert changing every time long number here)". I cannot find any mention of this in the book or in my notes really. does this little note mean something is not proper in my coding and/or will my grade be lessened because of it? I hope this question is okay to ask, thanks.
Try print exam1() instead of just exam1() and you'll see what is really being returned. Mark Guzdial (Thank you that led me from the darkness!)



It says you're not supposed to use the canvas. It's already there with the picture.

Is it alright to use exact pixel values to negate the bottom right 1/4 of the image as long as it returns the image your asking for? Thanks.

I'm sorry, but we can't answer any questions about your programs. Mark Guzdial


Do we need to have our function show the picture or save it as well? Thanks Jessica Goulding
Absolutely not. Mark Guzdial

When I mirror the picture over half of itself it gives me an out of bounds error...how is that possible if I'm cutting it in half? Thanks
That's EXACTLY the kind of question that we cannot answer. Mark Guzdial

When I try to getMediaPath of my picture typing in ("BaseCanvas.jpg") it doesn't work. My computer saves jpg pictures with .jpeg and i'm not sure how to change it; so in my code it looks like ("BaseCanvas.jpeg"). Will this cause problems with the ta's grading my exam?
Rename the file so that it matches the assignment. Right-click on the file and choose rename. Your TA can help you with that. Mark Guzdial

not sure if this is a valid question, but should we show the picture as well as return it?
No, do not show it. Mark Guzdial


sorry, but if we don't show the picture, how will the TAs see the final image?
Please read the assignment again. Mark Guzdial

I'm trying to execute the writePictureTo function in the command area, but it's giving me the "local or global name couldn't be found" error. I couldn't figure it out from the book or JES Help. Any ideas? Thanks.
We cannot answer that question, but please read the assignment again. Mark Guzdial

Can someone tell me what page I can find the negation on? Especially negating the bottom 1/4 of the picture.

Negation is on page 68, and how to apply any operation to a range of pixels is on page 72. Mark Guzdial

Thank you :))

Will someone please tell me why when i try to use setMediaPath, the files that appear when using pickAFile are no longer there? because then when i try to run a program that contains getMediaPath, it tells me that the file i'm attempting to pull up does not exist. please help!!
While we can tell you all you want about setMediaPath and getMediaPath, I can't help you figure out why the file you're attempting to pull seems not to exist. When you use setMediaPath, you don't see files because the file-picker that comes up for setMediaPath is letting you select a FOLDER, not a file. Mark Guzdial

Is the resultant image suppose to be exactly the same as the one shown? I set my mirror points to be the middle (XXX while mirroring on x axis and YYY while mirroring on y axis) and the picture does not come out to be exactly the same.
Your picture should come out to be the same, and please do NOT post details of your program on this page. Mark Guzdial

My question is similar to the one above. Looking at the picture of the resultant image we are supposed to get, it looks like the picture is mirrored horizontally slightly above the bottom of the picture. Are we supposed to mirror from the bottom of the picture, or half of the canvas or what?
The BaseCanvas is 400x400. How could mirroring "from the bottom of the picture" or "half of the canvas" be different? (That's a rhetorical question – I don't really want you to spell out details of what you did or what you think it might be.) Mark Guzdial

so we don't put the picture on a separate canvas?? The instructions say to return the canvas...as in the picture we saved as "BaseCanvas.jpg"? I'm a little confused with the instructions...
You do not use a separate canvas. Mark Guzdial

Just to clarify, all that we turn is the program, right?
Right. Mark Guzdial

This is a generic question that does not reveal any specific code. Are we supposed to show our image within our program? If not, how will the TA be able to view it?
No, you don't need to show it. Just do what the requirements say and the TA's will be fine. Mark Guzdial

?? sorry to bother... I know this question has already been asked but I tried naming my picture and I still can't use picture tools on it (I had the same problem last time but just played with the numbers - I'd really like to just get it right this time) It still says there are no pictures to examine. What am I doing wrong here? Thanks
Ask a TA or in breakout to show you. (I teach breakout at noon in IC109 – you're welcome to join us then. There'll certainly be seats. It's not like even half the class shows! :-) Mark Guzdial

The same thing happened to me that happened to Clarke Collins. Is there anyway you can just email me a copy of the JPG file? Thanks!
~Rachel King my email address is gtg317q@mail.gatech.edu

where can i find out how to negate 1/4 of the picture?
You'll have to figure that out on your own. But do recall that in HW2 you negated 1/2 of a picture, so you have a start there. Mark Guzdial

how do i negate the bottom corner of the picture? i looked in the book and it won't work.
See previous response. Mark Guzdial

I am sorry if this is a stupid question, but I want to make sure. We are just to download that picture, and manipulate it as is, without copying it to a blank canvas?
Yes. Mark Guzdial

So will the TAs focus on the code or program itself, instead of the resultant picture, considering we don't have to show it? Isn't that the point of these exams (considering the grading policy puts an emphasis on the word "programming")?
I'm not sure I get your point. The TA's will certainly look at the resultant picture. But YOUR PROGRAM doesn't have to show it. The TA's, having wide and vast (almost mystical) powers, have the capability of calling your program and showing the result. Mark Guzdial


when I do all the mirrorings, my program works fine, but as soon as I add the negative part to it, it gives me an error on the mirroring part. Can you help me with this?

I think I may have a problem with my code but i'm not sure. My program isn't terribly long, about 26 lines, but when i load it and type "exam1()"in the command window , i get the hourglass icon. I have restarted my computer and made sure jes is the ONLY program running, and still when i try to run exam1 it freezes the whole computer. Do you think there's something wrong with my code that could make it take so long?
Yes, it's certainly possible that it's something in your code that's making it take so long, but we can't answer questions about your program. I'm sorry. Mark Guzdial


So ALL we turn in is the statement and our code?
Yes. Mark Guzdial



Ok, I've think I've got everything figured out, but when I run the program, it never finishes compiling. I waited for about 30 minutes, but still nothing happens. Is this a code problem (too many for loops or something) or is it my computer? Justin Nixon
Compiling? You mean it doesn't Load when you click the Load button? Or it doesn't finish running? Running long can have to do with your program. Not loading may have something to do with your computer – try a different computer? Mark Guzdial


OK, my code works good except for one fact. All the pictures mirror good but all my pictures are negative. Any Suggestions?
Jeremy Phillips
Use the Design and Debugging tips from the book and from last Friday's lecture. Mark Guzdial


Is there some place specific to return the resultant picture? or just returning it is fine. Thanks.
Lee Yu
Just as we always have in programs. Mark Guzdial


Please be careful!

It's about this time that I've heard about students who are struggling with the Take Home Exam and contact their friends begging for help with the Exam. I hear about this during academic misconduct proceedings. DON'T DO IT! We do catch several cases of academic misconduct each term, and we are bound by the Honor Code to prosecute.



do we have to write print(canvas) in our code?

No. Mark Guzdial




Link to this Page