Difference between revisions of "Problem6"
Jump to navigation
Jump to search
(Created page with 'Prep Main Page > Web Conference 2 > Sample Problems > Problem 6 This is Library/maCalcDB/setAlgebra06EqnGraphs/s…') |
m (added tag) |
||
Line 48: | Line 48: | ||
ENDDOCUMENT(); |
ENDDOCUMENT(); |
||
+ | |||
+ | [[Category:PREP 2011]] |
Latest revision as of 13:14, 16 June 2021
Prep Main Page > Web Conference 2 > Sample Problems > Problem 6
This is Library/maCalcDB/setAlgebra06EqnGraphs/srw1_8_39.pg
DOCUMENT(); loadMacros( "PG.pl", "PGbasicmacros.pl", "PGchoicemacros.pl", "PGanswermacros.pl", "PGauxiliaryFunctions.pl" ); TEXT(beginproblem()); $showPartialCorrectAnswers = 1; $a1 = random(-6,6,2); $y1 = 2*$a1+3; $a2 = random(-5,5,2); $y2 = 2*$a2+3; $a3 = random(-6,6,1); $y3 = 2*$a3+2; $a4 = random(-1,6,1); $y4 = 2*$a4-2; BEGIN_TEXT Determine whether the given points are on the graph of \(y=2x+3\). Enter $BITALIC Yes $EITALIC or $BITALIC No $EITALIC for your answers: $BR Is ($a1,$y1) on the graph? \{ans_rule(15)\} $BR Is ($a2,$y2) on the graph? \{ans_rule(15)\} $BR Is ($a3,$y3) on the graph? \{ans_rule(15)\} $BR Is ($a4,$y4) on the graph? \{ans_rule(15)\} $BR $BR END_TEXT $ans1 = "Yes"; $ans2 = "Yes"; $ans3 = "No"; $ans4 = "No"; ANS(str_cmp($ans1)); ANS(str_cmp($ans2)); ANS(str_cmp($ans3)); ANS(str_cmp($ans4)); ENDDOCUMENT();