Web Conference Sample Problem

From WeBWorK_wiki
Revision as of 16:38, 26 May 2011 by Glarose (talk | contribs) (Created page with 'Prep 2011 Main Page > Web Conference 1 > Web Conference Sample Problem #################################### # Tagging Information …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Prep 2011 Main Page > Web Conference 1 > Web Conference Sample Problem

####################################
# Tagging Information

## DESCRIPTION
## Equations for lines
## ENDDESCRIPTION

## KEYWORDS('algebra','line','equationfor line')
## DBsubject('Algebra')
## DBchapter('Basic Algebra')
## DBsection('Lines')
## Date('05/26/2011')
## Author('Paul Pearson')
## Institution('Fort Lewis College')
## TitleText1('Intermediate Algebra')
## EditionText1('3')
## AuthorText1('Dewey, Cheatham, and Howe')
## Section1('2.4')
## Problem1('14')

####################################
# Initialization

DOCUMENT();
loadMacros(
"PGstandard.pl",
"MathObjects.pl",
"AnswerFormatHelp.pl",
);
TEXT(beginproblem());

####################################
# Setup

Context("Numeric");
$a = non_zero_random(-5,5,1);
$b = random(2,9,1);

####################################
# Main text

Context()->texStrings;
BEGIN_TEXT
Find an equation for a line through the point \( ($a,$b) \)
and the origin.
$BR $BR
\( y = \) \{ ans_rule(20) \} \{ AnswerFormatHelp("formulas") \}
END_TEXT
Context()->normalStrings;

####################################
# Answer evaluation and solution

$showPartialCorrectAnswers= 1;
ANS(Formula("($b/$a) x")->cmp());
COMMENT('Uses MathObjects');
ENDDOCUMENT();