Difference between revisions of "CS1 - 0910 - January"
From WLCS
(Created page with "== Tuesday - Thursday (1/26/10 - 1/28/10) == '''Warmup:''' * Bring up your Catch code * For each of the following, find the section of code that handles it, and put a comment the...") |
|||
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://elykogit.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]= | ||
+ | ---- | ||
+ | =[http://elykogit.co.cc CLICK HERE]= | ||
+ | ---- | ||
+ | </div> | ||
== Tuesday - Thursday (1/26/10 - 1/28/10) == | == Tuesday - Thursday (1/26/10 - 1/28/10) == | ||
'''Warmup:''' | '''Warmup:''' | ||
Line 52: | Line 60: | ||
*** == | *** == | ||
*** != | *** != | ||
− | *** | + | *** < |
*** > | *** > | ||
− | *** | + | *** <= |
*** >= | *** >= | ||
** Boolean operators | ** Boolean operators |
Revision as of 07:29, 24 November 2010
Tuesday - Thursday (1/26/10 - 1/28/10)
Warmup:
- Bring up your Catch code
- For each of the following, find the section of code that handles it, and put a comment there
- Opens the graphics window
- Detects keyboard buttons being pressed
- Moves the ball a little bit
- Displays the player and computer scores on the screen
- Checks if the ball and mitt have collided
- Refreshes (updates) the screen
Regular:
- Review warmup
- Pong
IB:
Friday (1/22/10)
Regular:
IB:
Wednesday (1/20/10)
- Rise of the Video Game: Part 1
Tuesday - Thursday (1/12/10 - 1/15/10)
Warmup:
Agenda:
- Demo missing work - Thursday is your last day for the quarter!
Friday (1/8/10)
- 2nd Quarter Exam
Wednesday (1/6/10)
Agenda:
- 2nd Quarter Exam will be on Friday (1/8/10)
- 2nd Quarter Exam Review
- input, output, variables, and math expressions
- functions
- if statements
- comparison operators
- ==
- !=
- <
- >
- <=
- >=
- Boolean operators
- and
- or
- comparison operators
- while loops
- sequences
- break keyword
- Demo all of the following assignments:
Monday (1/4/10)
Warmup:
- In three words, summarize your winter break
Agenda:
- 2nd Quarter Exam will be on Friday (1/8/10)
- If-statement review
- Prompt the user to enter a username and store it in a variable named username
- Prompt the user to enter a password and store it in a variable named password
- Using an if-statement, check if the username equals "admin" and the password equals a password of your choosing
- If the login is successful, then print that the "You have successfully logged in"
- If the login fails, then print "Authentication failure!"
- While statement
- Practice: Write a loop that prints out 1 through 5
- Write a while loop that runs exactly 5 times, each time the loop runs, print out "Login Trial #N" where N is the loop counter
- Take the if-statement code and put it inside the loop
- If the user successfully logs in, then also break out of the loop using the break keyword
- Demo all of the following assignments: