// Text can be any number of lines.
// Last line of an item starts with a : and may specify a figure file.
// Elaborations are enclosed in braces.
Specify the output produced by this code.
:
{
Study the code in the left panel.
: readCode.GIF
If the code does not produce any output, click on the No Output button.
: noOutput.GIF
Otherwise, identify all the outputs produced by the code.
:
{
Enter the output, one line of code at a time.
:
{
Click on the line number in black.
: lineNumber.GIF
Select Output and click on Add new output.
: addOutput.GIF
Enter the output and click on Done.
: enterOutput.GIF
}
Select the lines of code in the order in which they are executed.
: correctOrder.GIF
Repeat the procedure for all the lines of code that produce output.
:
Note that you can modify an output you entered earlier.
:
{
Click on the line number in black.
: lineNumber.GIF
Select Output and click on Edit existing output.
: editOutput.GIF
Note that all the previous outputs you entered for the line are listed.
Change one or more of the previous outputs and click on Done.
: editOutput2.GIF
To delete an output, erase it completely before clicking on Done.
:
}
Note that if a line produces multiple outputs back to back, you can enter them in one shot.
:
{
Click on the line number in black.
: lineNumber.GIF
Select Output and click on Add multiple outputs.
: multiOutput.GIF
Enter each output in a separate box. Enter the outputs in the
correct order.
Additional boxes will appear as
necessary.
After entering all the outputs, click on Done.
: multiOutput2.GIF
Caution: Do not use this feature if the outputs of this line are alternated with the outputs of another line!
:
}
}
Note that the outputs you enter will be displayed below.
: outputView.GIF
{
Your answer may be color-coded.
If an answer has green background, it is correct.
If it has red background, it is incorrect.
: errorFlag.GIF
You can undo the last output, or clear all the outputs here before submitting.
: undo.GIF
}
After identifying all the outputs, click on the Submit Answer button.
: submitAnswer.GIF
}
// If the 'play' button is provided, click on it to step through the feedback.
// animate.GIF
// Carefully read the feedback provided in the right panel. Scroll if necessary.
// readFeedback.GIF
// Finally, click on the "Next Problem" button to generate the next problem and start over.
// newProblem.GIF