We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa5ed2 commit 6c6f60bCopy full SHA for 6c6f60b
ProblemLibrary/setCH151_LearningChecks/module8-4a.pg
@@ -52,16 +52,12 @@ $j = 3;
52
Context("InexactValue");
53
54
$massAl = InexactValue(26.98, 4);
55
-$massSe = InexactValue(78.97, 4);
+$massSe= InexactValue(78.97, 4);
56
+$massSeSF = InexactValue(78.97, 5);
57
58
-$subtotalAl = $massAl*$i;
59
-$subtotalSe = 0;
60
-while ($j > 0) {
61
- $subtotalSe = $subtotalSe + $massSe;
62
- $j = $j-1;
63
- }
64
-
+$subtotalAl = InexactValue($massAl*$i, 4);
+$subtotalSe = InexactValue($massSeSF*$j, 5);
65
66
67
$total = $subtotalAl + $subtotalSe;
@@ -143,3 +139,4 @@ END_PGML_SOLUTION
143
139
############################################################
144
140
145
141
ENDDOCUMENT();
142
+
0 commit comments