Filter By
Filter Reset
Semester
Class Notes (1,032,664)
US (405,110)
UIC (1,552)
CS (13)

Class Notes for Computer Science at University of Illinois, Chicago

CS 111 Lecture 16: LabNotes7 Example code to show how the break statement end a loop early
Premium

def main(): fname = pickAFile() s1 = makeSound (fname) fname = pickAFile() s2 = makeSound (fname) soundResult = join ( s1, s2 ) explore (soundResult) saveFileName = pickAFile() writeSoundTo(soundResul...

Computer Science
CS 111
Troy Pat
CS 111 Lecture 13: LabNotes4 Increase the pitch of a sound
Premium

def main(): fname = pickAFile() s1 = makeSound (fname); soundResult = reverse ( s1 ) explore (soundResult) def reverse ( sound ): # get a samplem List from the sound and the total number of samples sampl...

Computer Science
CS 111
Troy Pat
CS 111 Lecture 12: LabNotes3 Decrease the pitch of a sound
Premium

def main(): fname = pickAFile() s1 = makeSound (fname); soundResult = increasePitch ( s1 ) explore (soundResult) def increasePitch ( sound ): # get a samplem List from the sound and the total number of sampl...

Computer Science
CS 111
Troy Pat
CS 111 Lecture 10: LabNotes1 Change the pitch of a sound based on the value given by a parameter
Premium

def main(): fname = pickAFile() s1 = makeSound (fname); soundResult = modifyPitch ( s1, 0.80) explore (soundResult) def modifyPitch ( sound , delta): # get a samplem List from the sound and the total number o...

Computer Science
CS 111
Troy Pat
CS 111 Lecture Notes - Lecture 7: Relational Operator
Premium

CS 111 - 10/11/16 Start using iClickers in class. X points per question (thinking 5 points per question) (3 pts for answering the question 2 more points for answering it correctly) Last Time: Intro...

Computer Science
CS 111
Troy Pat
CS 111 Lecture Notes - Lecture 2: Decimal Mark
Premium

CS 111 - 8/30/16 When programming, program style is important. Style makes the program easier for another person to read/understand Aspects of programming style include: Comments - descriptions written with the pr...

Computer Science
CS 111
Troy Pat
CS 111 Lecture 3: LectureNotes3
Premium

CS 111 - 9/6/16 Chapter 3 - Using "Turtle Drawings" instead of text/string manipulation Flow of Control - determine which statement get executed next Points of Confusion - assignment statements look very similar ...

Computer Science
CS 111
Troy Pat
CS 111 Lecture 5: LectureNotes5
Premium

CS 111 - 9/27/16 Exam 1 in class on Thursday 9/29/16 20 multiple choice questions (3 pts each) 2 write code questions ( 20 pts each) x = 1 z = 0 for w in range(5): z = z + x x = x + 1 --------- Answer x:...

Computer Science
CS 111
Troy Pat
CS 111 Lecture Notes - Lecture 4: Alan Perlis, Digitizing

A program is a description in a programming language of a process that achieves some result. An algorithm is a description of a process in a step-by-step manner. The same algorithm could be written in many langua...

Computer Science
CS 111
Troy Pat
CS 111 Lecture Notes - Lecture 3: Decimal Mark

print “Hello World” print ( “Hello World” ) # same thing as “Hello World” # marks comments, which are important when others look at our programs # comments for blocks of code are good # good comments give additional...

Computer Science
CS 111
Troy Pat
CS 111 Lecture 2: Programming Basics, Variable Names, Expressions, Python Example (25 August 2016)

On a computer, we need to keep track of data when programming. On a computer, the wires can either have electricity flowing or not flowing. When the current is flowing: the wire is “ON” (or has a value of...

Computer Science
CS 111
Troy Pat

Log In


OR

Don't have an account?

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit