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:
 
*** ==
 
*** ==
 
*** !=
 
*** !=
*** <
+
*** &lt;
 
*** >
 
*** >
*** <=
+
*** &lt;=
 
*** >=
 
*** >=
 
** 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:

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:

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
  • while loops
    • sequences
    • break keyword

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
    1. Prompt the user to enter a username and store it in a variable named username
    2. Prompt the user to enter a password and store it in a variable named password
    3. Using an if-statement, check if the username equals "admin" and the password equals a password of your choosing
    4. If the login is successful, then print that the "You have successfully logged in"
    5. If the login fails, then print "Authentication failure!"
  • While statement
    1. Practice: Write a loop that prints out 1 through 5
    2. 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
    3. Take the if-statement code and put it inside the loop
    4. If the user successfully logs in, then also break out of the loop using the break keyword
  • Demo all of the following assignments:

Archives