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


This page removed for FERPA compliance
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Week 8 Comments



Comments?




When will grades for the take home exam be up?
Don't know right now – will check. Mark Guzdial

does it really matter what parts of info we use in lab4??? im guessing its ok as long as we use powerpoint, insert a picture, animate the slides, etc. ??
If it specifies Lab3 Excel file, use that (even if you're not sure of your results.) If it doesn't, use what you want. Mark Guzdial


i cannot wait for spring break, too bad we are going to have to be studying for this midterm over the break :(

have fun doing that! i definitely WON'T be studying anything over the break

i am pretty much done with the prequiz, however, i am not sure how to make the line on question five red. i have done everything else, but as of right now i only have a black line. can someone help me out. thanks, Jessica REMOVED
Go look at the drawing-graphics slides. Note how we drew the black lines on Santa. Mark Guzdial



For question #1 and #2 on the pre-quiz, what exactly is meant by the question "All of the picture?"
Do both parts of the program modify all of the picture? Or only part? If part, which part? Mark Guzdial

Can we use Powerpoint XP on the lab or does it have to be 2000? Felicia Coursey
PowerPoint XP should work fine. Mark Guzdial

not cool that we have a MIDTERM the week after Spring Break! can it get moved to that monday... a week after spring break?
The midterm is on FRIDAY after Spring Break. I took a clue from the Midterm Review last time – how many folk really studied more than four days before the Midterm? Uh-huh – that's what I thought. By moving it to Friday, we give you just as much time to study, even without studying during Break. If I get the Midterm Review up this week or early next, you can look at it the weekend before school starts, or the four days Monday through Thursday before the Midterm Exam. Mark Guzdial


he already moved the midterm to friday instead of wed, and on the pre-quiz, "all of the picture?" is asking if the things that the loops are doing to the picture are happening to all of the picture or only parts of it.

Thank you! BTW, I understand that we got all of 20 surveys on the class. We're going to try again Wed. Please DO consider giving us your feedback on the course! Mark Guzdial


What if we don't have Powerpoint 2000? Does that really make a difference for Lab 4?
Rebecca Cocos

I guess I should clarify. I have Microsoft '97 and not the 2000 ones.
Rebecca Cocos

The caveat on PowerPoint 2000 means that all descriptions of what menu items to use and what features to use were based on PowerPoint 2000. Later ones will almost certainly have nearly the same menu items and features. Earlier ones? We haven't checked that. If you CAN do all the lab on earlier Windows, great. You might get started, find some feature that is missing on an earlier version of PowerPoint, then just move your file over to the Library (or wherever) and finish there. It's certainly not WRONG if you can get it done on an earlier version. Mark Guzdial


ok, i looked at the slides, and i wrote code that i thought would work. however, when i did it, i got a big red blob in the upper left hand corner. it filled in the entire block from (0,0) to (100,100). i am at a loss, i thought i knew this stuff. Jessica REMOVED

i'd do the survey if we had more time. the problem is, most of us have a class at 11 so we have to rush to get there. if you give us 10 minutes before class is over, i bet you would have more responses.

I agree. Even better, give it to us before class starts, as people are coming into class.
Will do – thanks! Mark Guzdial

I cannot get a red line. I have looked over the lecture slides and tried this a million different ways! Help!


Me too... no red line.

Wouldn't question 3 depend on how big the image is, and how many pixels? Also, what if the width was 240 (half of 120)... would that include the pixel at (120,32)???
Student86
I see your point, Justin. Assume an image of 640 by 480 pixels. Mark Guzdial

I was just looking at lab 4 and i was wondering when it says that it wants the data for lab 3, does that mean all the data entries for the car-data-set, or just the conclusions that we made through the process of doing lab 3? Hopefully just the conclusions, b/c there are about 250-something data entries in the set!
Just the answers. Mark Guzdial

I got the line...just not red? Any ideas?

Is it required that we use one of the given templates for lab 4? I made my own background and have a more graphic oriented presentation then the ones shown.
It says "whatever style you like," so I think that means you can make your own. Mark Guzdial

I have been messing with the recepie all evening and for some reason i REALLY cannot get that damn line to turn red... anyone got ANY suggestions??!!

A line is a sequence of pixels all of the same color. Take a look at the last example in PictureEncoding.ppt. Remember how we made a very small yellow line by coloring individual pixels? Can you make a FOR loop do it? ALL the pixels between 0,0 and 100,100 IS a rectangle. How do you color just the pixels that lie on the line between 0,0 and 100,100? You can't do this with addLine. Mark Guzdial




All I can get is a red rectangle... I've tinkered with for loops like its my job... but to no avail. We can create a red rectangle with for loops.... but I can't get the line. Do we need a "for x in range" and a "for y in range" loop? Like subnested or something??? Or do we try to have only an X loop...and increment the y value somehow?? I'e tried a lot of stuff - but obviously not the right thing yet. Student86 — He's lost

On question 1 and 2–I don't understand what you're asking for on with "All of the picture?" Can you clarify this question a little more?


I explained the "all of the picture" earlier on this page. Justin, I think you've got the right idea, but you're not thinking in terms of the math. What are the points that are on the diagonal (0,0)-(100,100)? Let me give you the first couple ones after (0,0) to give you a hint: (1,1),(2,2). Mark Guzdial

but if we did (1,1)(2,2)(3,3)...(100,100) that would be a ton of code is that what you re looking for or is that futile and is there a sort of loop hoole you are looking for... I am about pulling my hair out with that last question!
Think about what a loop does and what it's good for. Mark Guzdial

Okay, I think I might have gotten it to draw the red diagonal line, but are we supposed to do it in 2-3 lines of code? I used 4 lines of code. Does that matter? Kendra Christensen

No, that doesn't matter, Kendra. It's not 10 lines of code. Mark Guzdial


I understand what the concept is to get the red line, but I cannot figure out the math part. I think it has something to do with taking the pixel number before it and adding one so it goes to the next postion. I guess I can't figure out how to put it into Jes.


Nevermind, I figured it out!

I haven't!! :( Please share

for x in range(0,100):
y = x
setColor =(getPixel(file,x,y),red)

This makes since to me for number 5 but I can't get it to work. Am I anywhere close?



I put a for y in range (0,100): in there also and mine worked. But my red line isn't starting exactly from the top corner. Could it just be that the picture I'm using has some of the top cut off and I can't see it, or is it something that needs to be fixed? Student87

You are close but you might want to change file to picture.



Wouldn't the range be (0,101) ???? if we're looking for a line that includes the point (100,100)??
Student86


setColor(getPixel(picture,x,y),red)

yeah justin i think that is right i didnt think about that


i got everything yall have above, but my line is still not red. any ideas?

i have code that draws a red diag. line, but when i repaint and show in jes it appears that it does not start at (0,0), but when i write to file and open it in media sources and look at the pixels it does start at (0,0). why is this? does the gray bar that says the title of the picture have anything to do with it? is this correct?


what's the code?

def statementc(picture):
y=0
for x in range(0,100):
setColor =(getPixel(picture,x,y),red)
y=x
show(picture)


I don't understand the assignment for Lab4. How do you want it structured? Do you want me to talk about cars in my presentation and then just throw in my opinion about excel? or do you want a presentaion on excel?

take a break. we're talking about preQ here.

is (r,r,r) in question 4 the same as (r,g,b) ?

(r,r,r) means that you replace all the colors with the value of red.

i think for number 4 (r,r,r) means that you are seting the color of r,g,and b to equal the value of r=getRed(s)-REMOVEDsan Holloman

I thought # 1 is "copying" and "clearing" blue. and #2 is "mirror" and "negative" across half the image.anyone know so? just checking.



I don't think there is any copying or mirroring going on in the function. All the function is doing is defining the range, which is the left half for loop a, and the right half for loop b, and then manipulating within that range. Correct?

yeah that is right... there is no copy or mirror

What do yall think about number 4. Is it making it greyscale?

  1. 4 is completely red

umm....I think that 4 is greyscale. It is making green and blue equal to the red, thus making them all equal, which is somewhat of a greyscale. it definitely doesn't make it all red


yeah that is what i thought.. beacuse red=green=blue it is greyscale


What about the red line for question #5? Any suggestions other than the previous posted...anyone got it to work?

what's going on in question 3

  1. 3. in x and y positions(120,32), it sets the color value at 15,23 and 15. i think.

i think it sets the blue value to 0, since (120,32) is on the left half of the canvas

Statement C is "setColor(s,(makeColor(r,g,0))
If believe that means set the colors to the value of r and g and set blue to "0" -REMOVEDsan Holloman


we are substituting the function with "setColor(s,makeColor(15,23,15)) in # 3.correct?

No, I don't think so. It is saying that as position (120,32) the value there is 15,23,15. So implemented with #c, it would no longer clear the blue for all the pixels, it would just clear the blue at that one particular location.
I don't agree. I think that we are not changing Statement C. The 15, 23, and, 15 are the values of getPixel at (x,y) position (120,32). I think we are saying what is the outcome of statement C when we are given a pixel with those values. So it would be (15,23,0). ????

Yes, that is what I got. Kelly Farrell


Does anybody else have a 0 for HW2 and they did it right.

I also got a 0 and had that problem right. Is your TA Larry Olson?

Yeah my TA is Larry Olson


check your email. he said he'd have the right grades up by friday.

In Lab 4, it says to add the histogram that we made in lab 3. Which graph is the histogram? I had 2 graphs for that lab.

the histogram is the 1st one we did. the distribution of the car weights

the one with just the lines? not the bar graph one? is that right?

is it okay to make up some of the answers if you didn't get some of the right answers or didn't finish it?

I didn't get full credit for Lab 3 and I don't know what was wrong with it. Will it be a problem if I use the possibly wrong results that I got? Student88

Re-read Lab 4, REMOVED. It says explicitly to use the answers you got. Mark Guzdial


Thanks, its been a long week :) Student88

Is there any way for us to find out what we did incorrectly on the Take Home Exam? My grade was alot worse than I thought it would be, and I'm not going to be able to go to recitation tonight because of a practice I have. Thanks! Student117

I think that lab 4 would have been a lot more interesting and meaningful if we could have maybe made a presentation on our hometown, or our major, or maybe how this class relatest to our major than some random car information from lab 3. It is really boring and not fun to do. A power point presentation is something that could have been more interesting to experiment with.

I agree.

I agree, too. I'll look into changing it for Fall. REMOVEDmmer, see your TA, please, for a report on your Take Home Exam. Mark Guzdial

Why is my grade for the Take-Home Exam not up on WebWorks yet? Does everyone else already have their grades? Lauren Biddle

Will do! Thanks! I agree about the infor on Lab 4–even though i do think Powerpoint is fun–hehehe–I'm such a dork! Student117

does using the table option count for drawing in powerpoint?

Does it matter if we have more than 10 slides?

My Take Home Test grade isn't posted either. When will they all be up? Michelle Tougas

It says 7-10 slides...so i'm guessing more than 10 would be a bad thing.

We're not going to dock you for too many slides. Take Home Exam grades will be up soon, but they're not all done as of this writing. Mark Guzdial




Link to this Page