<?xml version="1.0" encoding="ISO-8859-1"?>
<CAT xmlns:cat="http://www.w3.org/TR/html4/" version="2.0"> 
<cat:title>Math Expressions 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>
This activity allows instructors to see if students understand how to simplify arithmetic expressions in C.
</p>
</cat:purpose>
<cat:activity>
Simplify the following expressions (remember, these expressions are written in the C language and may not follow conventional mathematical rules):
<ul>
<li>(15 / 2) * (3 / 2)</li>
<li>15 * 3 / 2 / 2</li>
<li>3 / 2 * 15 / 2</li>
<li>15 / 2 * 3 / 2</li>
<li>(15 * 3)/(2 * 2)</li>
<li>(15.0 * 3) / 2</li>
<li>(int) (15.0 / 2.0)</li>
<li>8 + 7 % 5 - 6</li>
<li>6 - -3 * 50 % (48 + 9 / 8)</li>
<li>(double) 10 / 4</li>
<li>(double) (10 / 4)</li>
<li>(int) ((double) 10) / (double) 4 + 1.0</li>
</ul>
</cat:activity>
<cat:solution>
<ul>
<li>(15 / 2) * (3 / 2) == 7</li>
<li>15 * 3 / 2 / 2 == 11</li>
<li>3 / 2 * 15 / 2 == 7</li>
<li>15 / 2 * 3 / 2 == 10</li>
<li>(15 * 3)/(2 * 2) == 11</li>
<li>(15.0 * 3) / 2 == 22.5</li>
<li>(int) (15.0 / 2.0)</li>
<li>8 + 7 % 5 - 6 == 4</li>
<li>6 - -3 * 50 % (48 + 9 / 8) == 9</li>
<li>(double) 10 / 4 == 2.5</li>
<li>(double) (10 / 4) == 2.0</li>
<li>(int) ((double) 10) / (double) 4 + 1.0 == 3.0</li>
</ul>
</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>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: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>Mathematics</cat:topic>
	<cat:topic>C</cat:topic>
	<cat:topic>Integer arithmetic</cat:topic>
	<cat:topic>Associativity</cat:topic>
	<cat:topic>Precedence</cat:topic>
	<cat:topic>Types</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>Straightforward to Enable</cat:device_enabled>
<cat:related_topics>
	<cat:topic>Order of Operations</cat:topic>
	<cat:topic>Function Calls</cat:topic>
	<cat:topic>Simple Data Types</cat:topic>
	<cat:topic>Built-in Functions</cat:topic>
	<cat:topic>Logical Expressions</cat:topic>
</cat:related_topics>
</cat:classification>
</CAT>