Editing Invaders Sample Problem

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 138: Line 138:
 
# reinitialize_button=>$permissionLevel>=10,
 
# reinitialize_button=>$permissionLevel>=10,
 
)));
 
)));
  +
  +
TEXT(MODES(TeX=>"", HTML=><<'END_TEXT'));
  +
<script>
  +
if (navigator.appVersion.indexOf("MSIE") > 0) {
  +
document.write("<div width='3in' align='center'
  +
style='background:yellow'>You seem to be using Internet Explorer.<br/>
  +
It is recommended that another browser be used to view this page.</div>");
  +
}
  +
</script>
  +
END_TEXT
  +
  +
   
 
</pre>
 
</pre>
Line 180: Line 192:
 
$BR
 
$BR
   
  +
$BR list all intervals for which
  +
$BR
  +
a)
  +
\(f^\prime(x)>0\)
  +
\{ans_rule(35) \}
  +
$BR
  +
b)
  +
\(f^\prime(x)<0\)
  +
\{ans_rule(35) \}
   
$BR Click or tap first the function then its derivative for high score.
 
  +
$BR
$BR When the game ends, press 'submit answers'.
 
  +
c)
$BR If your score is high enough, you'll get credit.
 
  +
\(f^\prime(x)=0\)
  +
\{ans_rule(35) \}
  +
  +
$BR
   
 
END_TEXT
 
END_TEXT
Line 200: Line 224:
 
|- style=" background-color:#eeccff;"
 
|- style=" background-color:#eeccff;"
 
| <pre>
 
| <pre>
###########################################
+
######################################
 
#
 
#
 
# Answers
 
# Answers
Line 206: Line 230:
 
## answer evaluators
 
## answer evaluators
   
NAMED_ANS('answerBox'=>$ans->cmp());
 
  +
ANS( $correctAnswer1->
  +
cmp(strings=>['None']) );
  +
#checks AnSwEr00001
  +
ANS( $correctAnswer2->
  +
cmp(strings=>['None']) );
  +
#checks AnSwEr00002
  +
ANS( $correctAnswer3->
  +
cmp(strings=>['None']) );
  +
#checks AnSwEr00003
   
   
ENDDOCUMENT();
+
ENDDOCUMENT();
 
 
</pre>
 
</pre>
 
| <p>
 
| <p>
This is the <strong>answer</strong> section of the problem. The applet returns a 1 if the student gets a score of 30,500 or more. The student can earn this score by pausing the applet and restarting it. To earn a higher score, the applet must be played without pause.
 
  +
This is the <strong>answer</strong> section of the problem. The problem answer is set by the <code>ANS( $correctAnswer1-></code> <code>cmp(strings=></code> <code>['None']) );</code>, <code>ANS( $correctAnswer2-></code> <code>cmp(strings=></code> <code>['None']) );</code>, <code>ANS( $correctAnswer3-></code> <code>cmp(strings=></code> <code>['None']) );</code> lines. These compare the student's answer with the answers returned from the applet. The answers allow for either a list of intervals answer or the string 'None' for empty lists.
  +
</p>
  +
<p>
  +
The solution is embedded in the applet and becomes available when the due date has passed.
 
</p>
 
</p>
 
<p>
 
<p>

Please note that all contributions to WeBWorK_wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see The WeBWorK Project wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)