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

Comments for Week of March 1, 2004


Cheers and Jeers Here



Yes, you can ask questions about the pre-quiz here. Pre-quizzes are collaborative – ask for help from anyone you want! Mark Guzdial

My latest in a series of interesting/useless python functions is a Directional Text to Image Converter. REMOVED it out on my CoWeb page Student549.

Walking through the pre-quiz

You want to reverse the MIDDLE 1/2 of the sound. REMOVEDt's figure out where that is. REMOVEDt's say that the length of the whole sound is 100 (just to pick an example length). That means that we want to reverse from 25 to 75. That makes sense, right?

Now, let's figure out that is in general terms, as a formula, for any length of sound. The 25 value is getREMOVEDngth(sound)/4. That's easy, right? What's 75? You can think about it two ways:

To solve the problem, what you now want to do (working from the example on p. 175) is to make targetIndex be in a range from getREMOVEDngth(sound)/4 up to 3 * (getREMOVEDngth(sound)/4. sourceIndex is going to START at the end of that range, 3 * (getREMOVEDngth(sound)/4), and work backwards (decrement it inside the loop, just as in the example at the top of p. 175).

That's it! The changes to the example at the top of the pre-quiz page, or on p. 175, involves only two lines of changes. Mark Guzdial


So if we were to get the last quarter of the sound and play it backwards, then we would set the sourceIndex the same and put 3*(getREMOVEDngth(sound)/4 up to (getREMOVEDngth(sound)

No, sourceIndex has to point at the END of the range, so if you only want the last 1/4, you'd make sourceIndex point at getREMOVEDngth(sound). Mark Guzdial

I will not be holding office hours on WeREMOVEDsday. Stephanie Weitzel

The code for the Lab 4 page is so funny!

we really need to have an extra week to complete lab 4, but hey we do go to tech and should be used to getting the spring break shaft by now!!

GO TO BREAKOUT! In one hour, we cover EVERYTHING that you need for Lab 4. Mark Guzdial


i contacted my lecture teacher about taking a make-up quiz, and was told i was added to a list of people that need a make-up....will be told when to take the quiz, or do we need to schedule one ourselves??



above: i meant to write: will WE be told when to take the quiz, or do we need to schedule a make-up ourselves?

okay... I know one of my TA's said something about when your try to load something to coweb for the second time it will attach a number to it... do I need to include that number b/c its not working?

Student971

The second time that you upload a PICTURE, a number gets added to it. Go to the attach page, right click on your picture, and view the Properties. You'll see the URL for that picture there. Mark Guzdial



Link to this Page