Setup Variables
interest d 0.08;
0.08 (1.1)
cash d 10;
10 (1.2)
checkouttotal d x;
x (1.3)
Digits d 10;
10 (1.4)
First equation
floor x$100
centsRounded d x/evalf ;
100
1
x/evalf floor 100 x (1.6)
100
Example 1
Assume the written problem. $10 with 8 percent tax. What is your checkout total. If get $10 of items?
Problem 2
Solve the written question. Need to stay under $10. What is the answer?
maxSpending
anAnswer d maxSpending, salesTax / ;
1 CsalesTax
maxSpending
maxSpending, salesTax / (1.1.5)
1 CsalesTax