<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.paulbui.net/wiki/index.php?action=history&amp;feed=atom&amp;title=IBCS1_-_1011_-_November</id>
	<title>IBCS1 - 1011 - November - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.paulbui.net/wiki/index.php?action=history&amp;feed=atom&amp;title=IBCS1_-_1011_-_November"/>
	<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=IBCS1_-_1011_-_November&amp;action=history"/>
	<updated>2026-06-21T19:04:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://www.paulbui.net/wiki/index.php?title=IBCS1_-_1011_-_November&amp;diff=6705&amp;oldid=prev</id>
		<title>Admin: Protected &quot;IBCS1 - 1011 - November&quot; ([edit=sysop] (indefinite) [move=sysop] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=IBCS1_-_1011_-_November&amp;diff=6705&amp;oldid=prev"/>
		<updated>2010-12-07T13:23:34Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/wl/IBCS1_-_1011_-_November&quot; title=&quot;IBCS1 - 1011 - November&quot;&gt;IBCS1 - 1011 - November&lt;/a&gt;&amp;quot; ([edit=sysop] (indefinite) [move=sysop] (indefinite))&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 13:23, 7 December 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://www.paulbui.net/wiki/index.php?title=IBCS1_-_1011_-_November&amp;diff=6703&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;== Tuesday (11/30/10) == &#039;&#039;&#039;Warmup:&#039;&#039;&#039; # Create a counter variable named &#039;&#039;&#039;tries&#039;&#039;&#039; that starts at 0 # Repeat the following while &#039;&#039;&#039;tries&#039;&#039;&#039; is less than 5: ## Prompt the user ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=IBCS1_-_1011_-_November&amp;diff=6703&amp;oldid=prev"/>
		<updated>2010-12-07T13:23:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Tuesday (11/30/10) == &amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039; # Create a counter variable named &amp;#039;&amp;#039;&amp;#039;tries&amp;#039;&amp;#039;&amp;#039; that starts at 0 # Repeat the following while &amp;#039;&amp;#039;&amp;#039;tries&amp;#039;&amp;#039;&amp;#039; is less than 5: ## Prompt the user ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Tuesday (11/30/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Create a counter variable named &amp;#039;&amp;#039;&amp;#039;tries&amp;#039;&amp;#039;&amp;#039; that starts at 0&lt;br /&gt;
# Repeat the following while &amp;#039;&amp;#039;&amp;#039;tries&amp;#039;&amp;#039;&amp;#039; is less than 5:&lt;br /&gt;
## Prompt the user to enter his/her name (store in a variable named &amp;#039;&amp;#039;&amp;#039;username&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
## Prompt the user to enter his/her password (store in a variable named &amp;#039;&amp;#039;&amp;#039;password&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
## Check if username matches your name &amp;#039;&amp;#039;&amp;#039;and&amp;#039;&amp;#039;&amp;#039; the password matches your password&lt;br /&gt;
##* If so, then print &amp;quot;You have logged in successfully&amp;quot; and &amp;#039;&amp;#039;&amp;#039;break&amp;#039;&amp;#039;&amp;#039; out of the loop&lt;br /&gt;
##* Else, print out &amp;quot;Invalid login.  Please try again...&amp;quot;&lt;br /&gt;
# Outside of the loop, check if &amp;#039;&amp;#039;&amp;#039;tries&amp;#039;&amp;#039;&amp;#039; is equal to 5&lt;br /&gt;
#* If so, then print out &amp;quot;Too many login attempts!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [[Looping with GASP Exercises]]&lt;br /&gt;
&lt;br /&gt;
== Thursday (11/25/10) ==&lt;br /&gt;
* Thanksgiving Break&lt;br /&gt;
&lt;br /&gt;
== Tuesday (11/23/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [[Looping Exercises]]&lt;br /&gt;
* [[Looping with GASP Exercises]]&lt;br /&gt;
* Turkey Exercise&lt;br /&gt;
** You will be using GASP to draw turkeys all over the screen&lt;br /&gt;
** Define a turkey(x,y) function that draws a turkey at a particular location (HINT: It helps to be able to draw a turkey in the lower left, and then generalize it to draw at (x,y))&lt;br /&gt;
** Using a loop, draw 50 random turkeys all over your screen&lt;br /&gt;
* Read and work through [http://www.openbookproject.net/thinkcs/python/english2e/ch08.html Case Study: Catch]&lt;br /&gt;
&lt;br /&gt;
== Friday (11/19/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Take out scratch paper and work out the Fibonacci sequence&lt;br /&gt;
* Assign variables to the first two numbers&lt;br /&gt;
* ...how do you calculate the third number?&lt;br /&gt;
* What should happen next?&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [[Looping Exercises]]&lt;br /&gt;
* [[Looping with GASP Exercises]]&lt;br /&gt;
&lt;br /&gt;
== Wednesday (11/17/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Assume you have the following code:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Python&amp;quot; line&amp;gt;&lt;br /&gt;
i = 0&lt;br /&gt;
while i &amp;lt; 10:&lt;br /&gt;
    print &amp;quot;All work and no play makes Jack a dull boy.&amp;quot;&lt;br /&gt;
    i = i + 1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* What is the counter variable?&lt;br /&gt;
* What is the condition of the loop? (i.e. when does it end?)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [[Print Shapes Exercises]]&lt;br /&gt;
* [[Looping Exercises]]&lt;br /&gt;
&lt;br /&gt;
== Monday (11/15/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Assume you have the following code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Python&amp;quot; line&amp;gt;&lt;br /&gt;
a = 0&lt;br /&gt;
b = 1&lt;br /&gt;
c = 0&lt;br /&gt;
a = a + 1&lt;br /&gt;
c = c + 1&lt;br /&gt;
b = a * c&lt;br /&gt;
c = c + 1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* What are the final values of a, b, and c?&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Introduction to Iteration (looping)&lt;br /&gt;
** while loops&lt;br /&gt;
** counter variables&lt;br /&gt;
* Looping practice&lt;br /&gt;
** Print out all the numbers from 0-50&lt;br /&gt;
** Print out all the numbers from 75 down to 25&lt;br /&gt;
** Write a loop that prints out the first 100 even numbers&lt;br /&gt;
** Prompt the user for a number and store it in a variable n, then print out the first n odd numbers (starting at 1) using a loop&lt;br /&gt;
** Print out all the numbers that are divisible by 6 from 0 through 100&lt;br /&gt;
* [[Guessing Game Assignment]]&lt;br /&gt;
&lt;br /&gt;
== Wednesday (11/10/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Complete the HTTLACS: Ch 5 exercises and demo to Mr. Bui&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Introduction to GASP&lt;br /&gt;
* Creating useful functions&lt;br /&gt;
&lt;br /&gt;
== Monday (11/8/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Prompt the user to enter a decimal (float) number and store in variable &amp;#039;&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# print int(x)&lt;br /&gt;
# print round(x)&lt;br /&gt;
# Test out your program using several numbers (e.g. 3.2, 4.5, 5.9)&lt;br /&gt;
# What do you think the &amp;#039;&amp;#039;&amp;#039;int()&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;round()&amp;#039;&amp;#039;&amp;#039; functions do?&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Review &amp;#039;&amp;#039;&amp;#039;return&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Review doctests&lt;br /&gt;
* Complete the exercises at the end of [http://openbookproject.net/thinkCSpy/ch05.html HTTLACS: Ch 5] (w/ doctests)&lt;br /&gt;
&lt;br /&gt;
== Thursday (11/4/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Define a function named slope(x1, y1, x2, y2) that takes the four listed parameters&lt;br /&gt;
* Calculate the slope and store it in a variable &amp;#039;&amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* print m&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Return and go over 1st Quarter Exam&lt;br /&gt;
* Re-introduction to Functions&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;return&amp;#039;&amp;#039;&amp;#039; keyword&lt;br /&gt;
** doctests&lt;br /&gt;
* [http://openbookproject.net/thinkCSpy/ch05.html HTTLACS: Ch 5]&lt;br /&gt;
* Complete the exercises at the end of Chapter 5 (w/ doctests)&lt;br /&gt;
&lt;br /&gt;
== Monday (11/1/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Prompt the user to enter his/her grade (0-100)&lt;br /&gt;
* Using if statements, do the following:&lt;br /&gt;
** if the grade is greater than or equal to 90, then print &amp;quot;You have an A&amp;quot;&lt;br /&gt;
** if the grade is less than 90 &amp;#039;&amp;#039;&amp;#039;and&amp;#039;&amp;#039;&amp;#039; the grade is greater than or equal to 80, then print &amp;quot;You have a B&amp;quot;&lt;br /&gt;
** if the grade is less than 80 &amp;#039;&amp;#039;&amp;#039;and&amp;#039;&amp;#039;&amp;#039; the grade is greater than or equal to 70, then print &amp;quot;You have a C&amp;quot;&lt;br /&gt;
** if the grade is less than 70 &amp;#039;&amp;#039;&amp;#039;and&amp;#039;&amp;#039;&amp;#039; the grade is greater than or equal to 60, then print &amp;quot;You have a D&amp;quot;&lt;br /&gt;
** if the grade is less than 60, then print &amp;quot;You have an E&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Demo [[Geek Flow Chart Assignment]] today&lt;br /&gt;
* Go to [http://openbookproject.net/thinkCSpy/ch04.html HTTLACS: Ch 4] and read section 4.11: GASP&lt;br /&gt;
* Try out the GASP code to see if it works&lt;br /&gt;
* Try to draw a stick figure&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>