`Does the following Diophantine equation have integer solutions?`

\[ $a x + $b y = c \]

\{ $has_solution->menu() \} # $has_solution is a PopUp

END_TEXT Context->normalStrings;

ANS( $has_solution->cmp() );

if ( $part >= 2 ) {

Context->texStrings;

BEGIN_TEXT

Good! What is one possible solution?

$PAR

\(x\equiv\) \{ ans_rule(5) \}

END_TEXT

Context->normalStrings;

# and so forth

\[ $a x + $b y = c \]

\{ $has_solution->menu() \} # $has_solution is a PopUp

END_TEXT Context->normalStrings;

ANS( $has_solution->cmp() );

if ( $part >= 2 ) {

Context->texStrings;

BEGIN_TEXT

Good! What is one possible solution?

$PAR

\(x\equiv\) \{ ans_rule(5) \}

END_TEXT

Context->normalStrings;

# and so forth

- I have no guard to print the introduction and its answer field for the first part; i.e., no
`if ($part == 1)`, and - I have
`if ($part >= 2)`rather than the documentation’s`if ($part == 2)`because there’s a third part, too, and I wanted the text in part 2 to stick around there, as well.

`totalAnswers`when declaring this

`compoundProblem`was

**6**, not 3 as I originally expected. I say this because when the student gets the answers right, setting

`totalAnswers`to 3 leads to a score of 200% and a mysterious-looking

`X`on the student’s progress page, as well as problems with the student score, whereas setting

`totalAnswers`to 6 leads to a 100% and the expected 100 on the student’s progress page.

I want to make sure this is the desired behavior. It took me a couple of hours to figure out what was going on, so I’d be happy to add a note to the Wiki for the other rare birds like myself who try to do something like this. If this is not the desired behavior, but rather a bug, then of course I’d much prefer to change the problems now so that I do not have to worry about surprises in the future.