Difference between revisions of "The AdditionExample Applet"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
In this example, it is shown how to set up a simple applet for use in a WeBWork problem. The complete code for the applet, as well as the corresponding PG file, can be downloaded from '''(add download site)'''. |
In this example, it is shown how to set up a simple applet for use in a WeBWork problem. The complete code for the applet, as well as the corresponding PG file, can be downloaded from '''(add download site)'''. |
||
The applet, shown below, asks for the sum of two integers. Notice that there are no buttons for checking the answer in the applet, since this will be handled by WeBWork. |
The applet, shown below, asks for the sum of two integers. Notice that there are no buttons for checking the answer in the applet, since this will be handled by WeBWork. |
||
+ | |||
+ | [File:AdditionExampleStart.jpg] |
||
== Initial Setup == |
== Initial Setup == |
Revision as of 13:05, 29 June 2011
Introduction
In this example, it is shown how to set up a simple applet for use in a WeBWork problem. The complete code for the applet, as well as the corresponding PG file, can be downloaded from (add download site). The applet, shown below, asks for the sum of two integers. Notice that there are no buttons for checking the answer in the applet, since this will be handled by WeBWork.
[File:AdditionExampleStart.jpg]