Editing Hint Applet (Trigonometric Substitution) 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 1: Line 1:
== Flash Applets embedded in hint portion of WeBWorK questions Example ==
+
== Flash Applets embedded in WeBWorK questions u-subsitution Example ==
   
<h2>Sample Problem with trigSubWW.swf embedded</h2>
+
<h2>Sample Problem with uSub.swf embedded</h2>
 
<p style="background-color:#eeeeee;border:black solid 1px;padding:3px;">
 
<p style="background-color:#eeeeee;border:black solid 1px;padding:3px;">
<em>This sample problem shows how to use embed an applet in the hint portion of a WeBWorK problem.</em>
+
<em>This sample problem shows how to use the u-substitution applet.</em>
 
</p>
 
</p>
<p style="background-color:#93BED2;border:black solid 1px;padding:3px;">This applet and WeBWorK problem are based upon work supported by the National Science Foundation under Grant Number DUE-0941388.</p>
 
 
<p>
 
<p>
 
A standard WeBWorK PG file with an embedded applet has six sections:
 
A standard WeBWorK PG file with an embedded applet has six sections:
Line 18: Line 17:
 
</ol>
 
</ol>
 
<p>
 
<p>
The sample file attached to this page shows this; below the file is shown to the left, with a second column on its right that explains the different parts of the problem that are indicated above. Immediately is a screenshot of the WeBWorK problem with the swf file showing the step by step hints.
+
The sample file attached to this page shows this; below the file is shown to the left, with a second column on its right that explains the different parts of the problem that are indicated above.
<br>
 
[[File:trigSub.jpg]]
 
<br>
 
<oflash>file="images/0/0d/TrigSubWWpic.swf"|height=400px|width=550px</oflash>
 
<br>
 
 
<br>
 
<br>
 
Other applet sample problems: <br>
 
Other applet sample problems: <br>
 
[[GraphLimit Flash Applet Sample Problem]]<br>[[GraphLimit Flash Applet Sample Problem 2]]<br>[[Derivative Graph Matching Flash Applet Sample Problem]]<br>
 
[[GraphLimit Flash Applet Sample Problem]]<br>[[GraphLimit Flash Applet Sample Problem 2]]<br>[[Derivative Graph Matching Flash Applet Sample Problem]]<br>
  +
[[Hint Applet (Trigonometric Substitution) Sample Problem]]
 
</p>
 
</p>
   
Line 120: Line 120:
 
bgcolor => '#e8e8e8',
 
bgcolor => '#e8e8e8',
 
debugMode => 0,
 
debugMode => 0,
onInit => 'ggbOnInit',
 
 
);
 
);
 
###################################
 
###################################
Line 142: Line 141:
 
</script>
 
</script>
 
END_TEXT
 
END_TEXT
##################################
 
# Setup Flash applet
 
# -- this does not need to be changed
 
###################################
 
HEADER_TEXT(qq!
 
<script language="javascript">
 
function ggbOnInit(param) {
 
if (param == "$appletName") {
 
applet_loaded(param,1);
 
// report that applet is ready.
 
ww_applet_list[param].safe_applet_initialize(2);
 
}
 
}
 
</script>
 
!
 
);
 
 
</pre>
 
</pre>
 
| <p>
 
| <p>
Line 170: Line 153:
 
<br> configure the applet. There are three possible settings: "tan", "sin" and "sec" for each of the basic trigonometric substitutions.
 
<br> configure the applet. There are three possible settings: "tan", "sin" and "sec" for each of the basic trigonometric substitutions.
 
</p><br>
 
</p><br>
<p>The javascript function <code>ggbOnInit</code> tells the web page that the applet is ready. This chunk of code is not necessary in Flash applet embedded problems in which the applet is embedded in the problem itself because the applet tells the page its ready when it appears on the page. Here the appearance of the applet is delayed until the student has attempted the problem a few (in this case 5) times. So without the call to this function, the page continues to check on the applet, but no applet is available.</p>
 
 
|- style=" background-color:#ccffff;"
 
|- style=" background-color:#ccffff;"
 
| <pre>
 
| <pre>
Line 276: Line 258:
 
</p>
 
</p>
 
|}
 
|}
 
== License ==
 
 
The Flash applets developed under DUE-0941388 are protected under the following license:
 
[http://creativecommons.org/licenses/by-nc/3.0/ Creative Commons Attribution-NonCommercial 3.0 Unported License].
 
 
[[Category:Sample Problems]]
 
[[Category:Applets]]
 
[[Category:Flash Applets]]
 
[[Category:Problem_Techniques]]
 

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)