<?xml version="1.0" encoding="ISO-8859-1"?>
<CAT xmlns:cat="http://www.w3.org/TR/html4/" version="2.0"> 
<cat:title>Complex Conditions Direct Answer</cat:title>
<cat:author>Kate Deibel</cat:author>
<cat:date>March 29, 2004</cat:date>

<cat:technique>Direct Answer</cat:technique>

<cat:purpose>
<p>
Instructors can find out if students can apply De Morgan's laws correctly to conditionals.
</p>
</cat:purpose>
<cat:activity>
<p>
Please simplify the following conditionals so that the ! operator is only used as !=. As you complete these problems, keep in mind De Morgan's laws. Here A and B represent integer variables.
</p>

<ol>
<li>!(A != B)</li>
<li>!((A &lt;= B))</li>
<li>!((A == 1) || (A == 4))</li>
<li>!((A &gt;= 4) &amp;&amp; (B &lt; 2))</li>
<li>!((A &lt;= 5) || (B == 6))</li>
<li>!((A != 5) || (A == 5))</li>
<li>!((A != 5) &amp;&amp; (A == 5))</li>
<li>!((A &gt; B) || !(A == B))</li>
</ol>
</cat:activity>
<cat:solution>
<ol>
<li>(A == B)</li>
<li>(A &gt; B)</li>
<li>(A != 1) &amp;&amp; (A != 4)</li>
<li>(A &lt; 4) || (B &gt;= 2)</li>
<li>(A &gt; 5) &amp;&amp; (B != 6)</li>
<li>(A == 5) &amp;&amp; (A != 5) become false</li>
<li>(A == 5) || (A != 5) becomes true</li>
<li>(A &lt;= B) &amp;&amp; (A == B) becomes (A == B)</li>
</ol>
</cat:solution>
<cat:analysis>
<p>
The following must be done out of class:
</p>

<ol>
<li>In a first pass, mark and count the number of incorrect answers.</li>
<li>2. For each question that has a significant (your judgement call) of incorrect answers, do the following:
<ol type="a">
<li>Look through the answers to these questions.</li>
<li>Place different incorrect answers in separate piles.</li>
<li>Attempt to identify the nature of the most common errors that are made.</li>
</ol>
</li>
<li>Discuss in class these errors in class, using the common mistakes that you identified.</li>
</ol>

<p>
In-class feedback can be done by having students write their own answers, but caution must be taken to avoid embarassing or ridiculing a student for making mistakes.
</p>
</cat:analysis>
<cat:variant_uses>
	<cat:variation>Have students work in groups to complete this activity. The instructor may want to circulate throughout the groups to ensure that each group is making progress. After the groups have completed the problems, the instructor can ask for volunteers for each problem. Be sure to ask for explanations of the arithmetic.</cat:variation>
	<cat:variation>Have students work individually on their problems and form a small group to discuss their answers.</cat:variation>
	<cat:variation>Have each group give their answer to the rest of the class and encourage them to describe the laws they used to find their answer.</cat:variation>
</cat:variant_uses>
<cat:classification>
<cat:assessment_goals>
	<cat:goal>Develop problem-solving skills</cat:goal>
	<cat:goal>Improve mathematical skills</cat:goal>
	<cat:goal>Learn terms and facts</cat:goal>
	<cat:goal>Learn concepts and theories</cat:goal>
	<cat:goal>Improve skills at paying attention</cat:goal>
</cat:assessment_goals>
<cat:topics>
	<cat:topic>De Morgan's law</cat:topic>
	<cat:topic>Booleans</cat:topic>
	<cat:topic>Logic</cat:topic>
	<cat:topic>Logical Operators</cat:topic>
	<cat:topic>Negation</cat:topic>
	<cat:topic>Expressions</cat:topic>
	<cat:topic>Conditionals</cat:topic>
</cat:topics>
<cat:participation_level>
</cat:participation_level>
<cat:time>
	<cat:preparation_time>MEDIUM</cat:preparation_time>
	<cat:class_time>MEDIUM</cat:class_time>
	<cat:in_class_analysis_time>LOW</cat:in_class_analysis_time>
	<cat:out_class_analysis_time>LOW</cat:out_class_analysis_time>
</cat:time>
<cat:instructor_response>
	<cat:response>Lecture</cat:response>
	<cat:response>Next Day Summary</cat:response>
	<cat:response>Class Discussion</cat:response>
	<cat:response>Small Group Discussions</cat:response>
	<cat:response>Homework</cat:response>
</cat:instructor_response>
<cat:device_enabled>Could be Enabled</cat:device_enabled>
<cat:related_topics>
	<cat:topic>Mathematics</cat:topic>
	<cat:topic>Types</cat:topic>
</cat:related_topics>
</cat:classification>
</CAT>