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

Comments for Week of April 5, 2004


Cheers and Jeers


Does anyone know where I can find the max() or sort() function?


What comes after CS1315?

President Clough has asked all faculty to consider the NCAA Tournament in scheduling examinations. Based on his request, Take Home Exam #2 is now due Wednesday April 7 at noon. I've pushed off the HW5 and HW6 deadlines to Monday (from Friday) to give time for those. Mark Guzdial

Woo hoo!

Go Jackets!!!
-Matt Swanburg

Haha... how big can this bubble get?

What if we keep adding random comments to it? Sounds fun to me...

Who's ready to kick some UConn bootay?

I, personally, am going to win the game. Im sorry GT and UC fans, i am the champion.

Can I just say those refs were HORRIBLE

seriously...darn the refs to Hades. It was a great season though! Thanks Jackets!!

Still wondering when grades for Lab 4 (our webpage) will be up. Stephanie Henderson

I'm wondering the same thing....

As am I. My grade was up, and now it's not. It was wrong at first because it didn't take into consideration the e.c. I already e-mailed the TA and he said he would be posting it that day and hadn't... just wondering. Anytime soon?

I thought the take home exam was a little too hard...it took me a week to complete it...and it takes HOURS for my code to work...I don't know if i'm the only one this is happening to...but after I load my program,and execute it, it starts to work but it never finishes (after 5 hours at the least) causing me to have to restart my computer several times...so needless to say I'm turning in my code without even getting to look at the webpage....i think i'm gonna fail this one....

Obviously, thoughts on the take home ranged... from a couple of minutes to a couple too many hours (days, even)... Just goes to show that we can't all do CS.

I remember this being mentioned before, but I just wanted to clarify that due to this being Easter weekend...will the prequiz #3 be posted online or what? I'm confused. Thanks! :-)

That sounds like something you could find out on the Announcements page!!

The take home exam sucks! It sucks when 1 line prevents the program from running!!!!!!!!!!!...namely, the writePictureTo line

No it doesn't! It's a matter of minutes if you understood Homework 4 completely.

Only took me around 20 minutes to complete. Thanks Eris! Fnord.
Eggs Benedict

When can we expect to get Test 2 back???
In the 2 pm lecture, the tests were given back on Monday. All of the 15 people that were there got their tests back. Otherwise, you can pick your test up outside Mark Guzdial's office. Ashley Coker

Well thats great....Except I'm in the 12pm lecture, and I WAS there on Monday, and we didn't get them back. I really do not want to have to go to Tech Square to go get my test. Can we get them on Friday, for those of us who go?

We'll try to get the noon (and 2 pm) midterms to lecture on Friday. Mark Guzdial

when will we get our take home 2 grade back? thanks...

I don't understand what questions 1-a is asking for on the prequiz...could someone clarify please? Are we supposed to find a solution to the problem or explain databases? Thanks. ; )

We're looking for an explanation of databases. Mark Guzdial


Did I completely miss something and prequizzes were handed out?

I think they will be handed out in class on Friday, but it is posted on the Announcements page already... this is a good page to check regularly!
In fact, it's required – see Read Me First. Prequizzes will also be handed out in lecture tomorrow. Mark Guzdial


I'm not writing this to complain, rather, to inform...it was posted on the homework 5 questions page that MovieMaker would be discussed in breakout this week; however, my particluar profs/tas didn't know that much about it, so a few of us are floundering out here. I know that we can go to anyone's office hours, and everyone is usually so helpful especially on AIM (one of which I will probably turn to). I'm just putting it out there for next semester's class : )
Sorry. Mark Guzdial

why does the pre quiz link not work?
Works fine. You may not have Adobe Reader (Acrobat) – go to http://www.adobe.com to download it. It's free and very useful. Mark Guzdial

yeah, i tried to pull up the pre quiz on the anouncement page, and it wont come up. what up?

again, when can we expect our take home 2 grade back?
Two weeks is our goal. Mark Guzdial


I also have a problem with this week's breakout. Several people in my breakout session asked questions about hw5 and moviemaker and we were informed by the instructor that she had not even looked at homework 5 and had no idea how movie maker worked. Also, the TA's were not present. I was so frustrated with the lack of preparation that I left. I will say that in general, the TA's have been very helpful, they just didn't happen to be there that day. My vent is that it seems like my particular instructor never has a clue what assignments we have due, when they're due, or how to help us with them. What's the point of being an instuctor if you don't know what you're supposed to be instructing. Thanks, I just needed to vent.

Addition to my previous post, our breakout consisted of going over the importance of breaking up large programs into smaller functions, not anything whatsoever to do with movies. We have gone over the beauty of using smaller functions to create larger programs at least twice already. Again, this was very frustrating because we had been promised that movie topics were to be discussed in breakout.

I know a lot of people are venting lately, so please forgive this suggestion, but maybe all of the professors should meet more often or boost up some form of communication, because at least one of the breakout profs didn't know anything about moviemaker of hw5 and the 2 pm lecture today did not have the second midterms even though it said they would on this very page. Please forgive any harsh tones, because I know that being a teacher at GT is probably just as hard as being a student and sometimes people don't have the extra time to do the little things. I don't mean this as a cut towards anyone, because so many of you have helped us out by taking time out of your day, and I am VERY thankful (without you guys, I wouldn't have gotten this far in cs). This is a huge class and it's impossible to please everyone, but I'm just trying to politely suggest more communication between all the teachers. Thank you!

on quiz 3 are we required to either use lists or databases or can we use a series of if statements as long as we get the right answer?

On prequiz 3 (quiz is on Monday), you can use anything you want, as long as it works. Lists, databases, or hash tables will probably lead to shorter (maybe easier) code, but do anything you want. Mark Guzdial


Aerosmith in concert was AWESOME!!!

Can the hw please be postponed for Tuesday???....coweb was down the whole day today until now (4 p.m.)...I tried to work on it with the ta's but they couldn't be of much help without the hw directions and the lecture slides....it would be great if it was moved to Tuesday so that we can concentrate on the quiz that is on Monday...PLEASE postpone it...

could someone email me the prequiz-v2.pdf file please because explorer freezes everytime i try and download it from the announcements page. gtg288i@mail.gatech.edu thanks.

The HW due date is not going to be postponed. We've done that several times, and now, we're out of time. Mark Guzdial


could you POSTPONE the quiz then!? Something, please? Our easter baskets need a present from the profs... :)

No, we can't postpone the quiz because of finals review, dead week, and the final exam. Things got put off because of NCAA's, and now we're at the end of the term. There's no room to push things off. I'm sorry. Mark Guzdial


For Pre-quiz 3, is there any way to make a list which includes a phrase + an integer? I can find the maximum number for a letter but can't figure out how to make it print from which letter that number comes from.

Yes, but it's probably easier to use a hashtable or a database, since those automatically give you a phrase and an integer. Mark Guzdial


Can we ask questions here for prequiz 3? If so, I am confused as to what problem 1b is asking... Kyla LeCroy
You've only learned about two kinds of searches. You're going to end up name/describing both. Mark Guzdial



Kyla, try page 289 of the book for 1b. Stephanie Henderson

does our code for problem 2 on the quiz need to include a condition for printing something if 2 of the letters appear in the string the same numer of times (assuming they are the maximum)?
annie whitesel
No – assume one will be the largest. Mark Guzdial

does the pre-quiz 3 need to include lowercase and capital letters?
No – just one. Mark Guzdial

I cannot make a database or table for Pre-quiz 3!!! How do I combine a phrase and then the countE or countR (which I have made the number of those letters found in the string)?? HELP PLEASE.
counts[letter]=counts[letter]+1. Mark Guzdial

I tried the following code in JES and I'm pretty sure I'm on the right track, but I'm not sure if I'm saying the print statement right or at the right place...can i get some help, please?
def commonLetter(string):
  countE=0
  countT=0
  countR=0
  countS=0
  for letter in string:
    if letter =='E':
      countE=countE+1
    if letter=='T':
      countT=countT+1
    if letter=='R':
      countR=countR+1
    if letter=='S':
      countS=countS+1
  for letter in string:  
    maxValue=max(countE,countT,countR,countS)
    if maxValue==countE:
      print'The letter E was most common and appeared'max(countE)'times

Kyla LeCroy
You don't need the FOR loop to figure out the largest one. Think about it – there are only four possible print statements, right? Mark Guzdial

so, basically, I should have:
def commonLetter(string):
  countE=0
  countT=0
  countR=0
  countS=0
  for letter in string:
    if letter =='E':
      countE=countE+1
    if letter=='T':
      countT=countT+1
    if letter=='R':
      countR=countR+1
    if letter=='S':
      countS=countS+1 
    maxValue=max(countE,countT,countR,countS)
    if maxValue==countE:
      print'The letter E was most common and appeared'max(countE)'times'

I did this and it tells me I have an error in the last line...

This is my code:
def commonLetters(string):
  countE=0
  countT=0
  countR=0
  countS=0
  for letter in string:
    if letter =='E':
      countE=countE+1
    if letter=='T':
      countT=countT+1
    if letter=='R':
      countR=countR+1
    if letter=='S':
      countS=countS+1  

When I try to run it, this is what comes up:
>>> commonLetters(america)
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.
NameError: america

Isn't whatever is in parenthesis supposed to be the input? Meghan Quinlan

put america in quotation marks. it's a string Page has been removed

also, you don't need max() on your print statement. Page has been removed

hey Doug, if i don't put max() on my print statement how do I get it to say how many times the letter appeared? Kyla LeCroy

Because countE is that number. That's what the line countE=countE+1 does. Each time through the loop it ups the value.
Here's an example from the command area in JES:
>>> countE=4
>>> print countE
4
>>> print countE+1
5
>>> countE=countE+1
>>> print countE
5
Page has been removed

This should help with the prequiz:
http://coweb.cc.gatech.edu/cs1315/888

Doug, I understand that. But what I'm asking is how do I get the sentence to say it? Understand what I'm asking.

I figured it out, thanks Doug

my print function prints out 8 times. The first two times it gives a value(1), and the next six times it gives that value+1 (2). What am I doing wrong?

Maybe your print function is contained within your for loop. Everytime it goes back through it prints it again. Perhaps...

QUESTION:
Will you consider allowing us to drop or do something to replace our lowest grade from either quizzes, labs, or homeowrk. You have to admit, some CS conceopts are hard to grasp, and sometimes you just can't get something. Even if we were just offered a replacement assignment, I think we would all be pretty happy.

I've never done that before, and grades have always been quite high. (In fact, I've been critiqued for giving too many A's in here.) So, no, I don't plan on offering replacement grades or dropping grades. Mark Guzdial


there is no reason why you shouldn't be getting A's on all your labs and hw especially since we are allowed to collaborate. Also, the pre-quiz is very similar to the quiz; therefore, you should also be getting As or Bs on the quizzes.

Matt Swanburg is a fool yo!



Links to this Page