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 PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Fall 2006 Lab 2 Questions

Lab 2 Questions

I submitted my lab2 materials, but when I retreive them the word document works fine, but when I try the jes file the program seems to start but it never comes up. Is there a problem? Maybe you can try it and give me feedback? Sharod Alford

How do I check my JES lab part? I tried to retrieve it and was unable to. JES doesn't show up from the 'open from various programs' list. It also isn't saved next to the little JES icon.
When you retrieve your assignment from Webwork and unzip it, there should be a python file. You cannot open it directly. Open up JES first and then do 'File', 'Open' and select that file. - Bobby Mathew



I'm not seeing any drop down items under assignments on the turnin page. Is it busted again?
Webwork is not yet set up so you will not be albe to turn in the assigment. Webwork should be operational by tomorrow. -Albert d'Heurle
You can turn in the assigment now -Albert d'Heurle

Uhm I was wondering if I needed to correct the grammar in the Word document as well?
No that is not required- Albert d'Heurle

oh. and my file JES file is not working correctly. When I try to retrieve and re-open the program it says its nto a valid Win32 Application.
To open a file you created with JES you have to start JES first and then click File -> Open. At this stage you will need to browse to where you saved the file. -Albert d'Heurle

For Lab 2, I'm lost after "writePictureto()" - Melissa
Come to office hours or ask in recitation. Mark Guzdial

i cant seem to write my picture to my hard drive...i have a mac, so if anyone can help, thatd be great –kyle

try putting in r so it looks like this
writePictureTo(pic, r"C:\Documents and Settings\Ally\Desktop\ducks.jpg")
but with your picture variable and the destination you want it sent to on your computer
But since you have a Mac you will use forward slashes ('/') so it will look more like this:
writePictureTo(p, "/users/kyle/Desktop/temp.jpg")

In Introduction to JES under "Writing a Program and Writing a Picture to the Hard Drive" in Lab2 it says "Copy and paste example1() into the space below the line that says "# Add example2() here:"" I copied and pasted it right below it and then tried to load and save it but it gave me an error in the code. What is going on?
Try making sure all the blocks of code are aligned properly. If that doesn't work, please post the error it is giving you. Toni Walden

my computer wont let me save the word document or modify it in any way, how do i change that?

it says the document is locked
Weird! Windows computer? Try opening the Properties on the file (right-click in the Explorer) and change it to unlocked. Mark Guzdial

When I went to recieve my submission I wasn't able to pull up my JES file. The word document was fine, and the JES file was there, but when I clicked on it after I extracted the files, the JES program looked like it was starting but then it would dissappear and my assignment wouldn't show up. I resubmitted it several times and it was always the same. Any ideas?
You need to open JES up first, and the open the .py file by going into the "file" menu and selecting "open." From there, navigate to where your .py file is and open it. That should work. -Darryl Zuk

This is the part after "writePictureto()". I added my favorite picture of me to the Media Source file and found the location by typing pickAFile into the command area and dubble-clicking the picture file that I added. So now mine looks just like the example except the location of the picture. I typed example2() into the command area and it said "A local or global name could not be found. You need to define the function or variable before you try to use it in any way." instead of what it suppose to show. Help please~!
Did you load (i.e. click the load button) after doing the cutting and pasting? I am assuming that the name that could not be found was 'example2'. That will be specified in the line of the error message below lines that you quote. (I.e. "Name error: example2). If it's another name, think about what that fact tells you. Have you mistyped something? Colin Potts

If we don't collaborate with anyone, are we required to say so at the beginning?
No. It's assumed you are not collaborating unless you say so. Colin Potts

Is the picture that we copy to the Microsoft Word document the red version of the photo that has been written into the media sources folder in JES, or the photo that we originally used?
The red one that you used writePictureTo on Amanda Bennett

When I try to download the media sources, a page pops up that says:

Not Found
The requested URL /classes/AY2007/cs1315_fall/software/MediaSources.zip was not found on this server.

I am using my computer off campus. Does this make a difference. Can I just use a picture of my own?
The link was invalid. Its fixed now. Its better if you can get the picture from MediaSources but yes, you can use your own picture and rename it to what's in the code. - Bobby Mathew

i submitted my assignmet. when i try to open my jes file to check it it says windows can not open this file. how do i fix this so i can open the file?
You cannot open it directly. Open up JES first and then do 'File', 'Open' and select that file. - Bobby Mathew

I know what picture I have used, but I can not store it to my hard drive, I keep getting an error message for writeTo(). I use windows xp, but I do not know what to do. Donald White
That line should look like writePictureTo(picture, "C:.............."). You're probably getting an error because your file path is not right. Try messing with that and if you still don't get it, send me an email with the line that's giving you the error. - Bobby Mathew



Links to this Page