Skip to content

Commit

Permalink
Update module8-4b.pg
Browse files Browse the repository at this point in the history
Fixed answer and sig figs
  • Loading branch information
stebryan authored Nov 29, 2024
1 parent 6c6f60b commit 95659a5
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions ProblemLibrary/setCH151_LearningChecks/module8-4b.pg
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,10 @@ Context("InexactValue");
$massC = InexactValue(12.01, 4);
$massH = InexactValue(1.01, 3);

$subtotalC = InexactValue($massC*$i, 4);

$subtotalH = InexactValue($massH*$j, 3);

$subtotalC = 0;
while ($i > 0) {
$subtotalC = $subtotalC + $massC;
$i = $i-1;
}
$subtotalH = 0;
while ($j > 0) {
$subtotalH = $subtotalH + $massH;
$j = $j-1;
}



Expand Down Expand Up @@ -100,7 +93,7 @@ _Use the following table to calculate the molar mass of the formula given._
[@
DataTable([
[['Element ',headerrow=>1],'Quantity (mol)','', 'molar mass (g/mol)', '', 'Subtotal (g/mol)'],
[PGML('C'),PGML('3'),PGML('x'),PGML('[_____]{$massH}'),PGML('='),PGML('[_____]{$subtotalH}')],[PGML('H'),PGML('8'),PGML('x'),PGML('[_____]{$massC}'),PGML('='),PGML('[_____]{$subtotalC}')],[PGML(''),PGML(''),PGML(''),PGML('Total'),PGML('='),PGML('[_____]{$total}')]
[PGML('C'),PGML('3'),PGML('x'),PGML('[_____]{$massC}'),PGML('='),PGML('[_____]{$subtotalC}')],[PGML('H'),PGML('8'),PGML('x'),PGML('[_____]{$massH}'),PGML('='),PGML('[_____]{$subtotalH}')],[PGML(''),PGML(''),PGML(''),PGML('Total'),PGML('='),PGML('[_____]{$total}')]
],
midrules=>1 ,
tablecss=>'border:solid 1px;border-collapse: separate;border-radius: 5px; border: 1px solid; padding: 5px; ',
Expand Down

0 comments on commit 95659a5

Please sign in to comment.