<?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=HTTLACS%3A_Ch_4_Exercises</id>
	<title>HTTLACS: Ch 4 Exercises - 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=HTTLACS%3A_Ch_4_Exercises"/>
	<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=HTTLACS:_Ch_4_Exercises&amp;action=history"/>
	<updated>2026-04-11T14:08:14Z</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=HTTLACS:_Ch_4_Exercises&amp;diff=5981&amp;oldid=prev</id>
		<title>Admin at 15:01, 20 October 2010</title>
		<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=HTTLACS:_Ch_4_Exercises&amp;diff=5981&amp;oldid=prev"/>
		<updated>2010-10-20T15:01:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:01, 20 October 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot; &gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;References:&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;References:&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [http://openbookproject.net/thinkcs/python/english2e/ch04.html How to Think Like a Computer Scientist: Chapter 4]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [http://openbookproject.net/thinkcs/python/english2e/ch04.html How to Think Like a Computer Scientist: Chapter 4]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Media:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Boolean&lt;/del&gt;.ppt]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Media:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;BooleanLogic&lt;/ins&gt;.ppt]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Exercises:&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Exercises:&amp;#039;&amp;#039;&amp;#039;&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=HTTLACS:_Ch_4_Exercises&amp;diff=5980&amp;oldid=prev</id>
		<title>Admin at 15:01, 20 October 2010</title>
		<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=HTTLACS:_Ch_4_Exercises&amp;diff=5980&amp;oldid=prev"/>
		<updated>2010-10-20T15:01:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:01, 20 October 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot; &gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;References:&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;References:&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [http://openbookproject.net/thinkcs/python/english2e/ch04.html How to Think Like a Computer Scientist: Chapter 4]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [http://openbookproject.net/thinkcs/python/english2e/ch04.html How to Think Like a Computer Scientist: Chapter 4]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[Media:Boolean.ppt]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Exercises:&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Exercises:&amp;#039;&amp;#039;&amp;#039;&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=HTTLACS:_Ch_4_Exercises&amp;diff=5940&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;&#039;&#039;&#039;Directions:&#039;&#039;&#039; # Open a text editor (Applications-&gt;Accessories-&gt;gEdit Text Editor) # Put your name at the top # Save the file as YOURLASTNAME_ch4.txt # Complete the exercises ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=HTTLACS:_Ch_4_Exercises&amp;diff=5940&amp;oldid=prev"/>
		<updated>2010-10-18T15:04:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Directions:&amp;#039;&amp;#039;&amp;#039; # Open a text editor (Applications-&amp;gt;Accessories-&amp;gt;gEdit Text Editor) # Put your name at the top # Save the file as YOURLASTNAME_ch4.txt # Complete the exercises ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Directions:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Open a text editor (Applications-&amp;gt;Accessories-&amp;gt;gEdit Text Editor)&lt;br /&gt;
# Put your name at the top&lt;br /&gt;
# Save the file as YOURLASTNAME_ch4.txt&lt;br /&gt;
# Complete the exercises below in this file.  If you use DrPython, then be sure to copy your code back into this file&lt;br /&gt;
# Be sure to number each of your answers!!&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;References:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [http://openbookproject.net/thinkcs/python/english2e/ch04.html How to Think Like a Computer Scientist: Chapter 4]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Exercises:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# What does the &amp;#039;&amp;#039;&amp;#039;modulus operator %&amp;#039;&amp;#039;&amp;#039; do?&lt;br /&gt;
# Evaluate the following modulus expressions in your head (double-check your answers using Python)&lt;br /&gt;
## 5 % 2&lt;br /&gt;
## 9 % 5&lt;br /&gt;
## 15 % 12&lt;br /&gt;
## 12 % 15&lt;br /&gt;
## 6 % 6&lt;br /&gt;
## 0 % 7&lt;br /&gt;
## 7 % 0&lt;br /&gt;
# What does &amp;#039;&amp;#039;&amp;#039;boolean&amp;#039;&amp;#039;&amp;#039; mean?&lt;br /&gt;
# List all the comparison operators and what they look like in Python (there should be 6 total)&lt;br /&gt;
#* Example: greater than &amp;gt;&lt;br /&gt;
# Write the following program:&lt;br /&gt;
## Prompt the user for his/her age and store it in a variable named &amp;#039;&amp;#039;&amp;#039;age&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## Using an if-statement, check if the age is less than 18.  If True, then print out &amp;quot;You are a minor&amp;quot;, else, print out &amp;quot;You are an adult&amp;quot;&lt;br /&gt;
# Write the following program:&lt;br /&gt;
## Prompt the user for two numbers&lt;br /&gt;
## Check if the sum of the two numbers is greater than 100.  If True, then print out &amp;quot;r0x0rs!&amp;quot;, else, print out &amp;quot;low low low&amp;quot;&lt;br /&gt;
# Write the following program:&lt;br /&gt;
## Prompt the user to enter a number&lt;br /&gt;
## Using the modulus operator (%), check if the remainder when divided by 2 is equal to 0.  If True, then print out &amp;quot;Even number!&amp;quot;, else, print out &amp;quot;Odd number!&amp;quot;&lt;br /&gt;
# Write the following program:&lt;br /&gt;
## Prompt the user to enter his/her age&lt;br /&gt;
## If the age is greater than 4 and the age less than or equal to 11, then print out &amp;quot;You&amp;#039;re probably in elementary school&amp;quot;&lt;br /&gt;
## If the age is greater than 11 and the age is less than 15, then print out &amp;quot;You&amp;#039;re probably in middle school&amp;quot;&lt;br /&gt;
## If the age is greater than 14 and the age is less than 19, then print out &amp;quot;You&amp;#039;re probably in high school&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Submit:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Submit the file to [http://wlhs.schoolweblockers.com/ School Web Lockers]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>