Course Test · School: elementary and middle

Grade 7: proportional reasoning and rational numbers: RatMath answers

The same twenty exercises, answered with RatMath Core and the Shelf libraries only. The code below was run when this page was built; its output is shown as printed, and compared with the independent answer.

Agrees 20

Libraries used here: core, symbolic, stats, geo, finance. In this code each library is in scope under its own name (linalg.det, stats.tTest), and Core's names (R, Rational, …) are in scope directly.

  1. 1.ProportionsAgrees
    5 pounds of apples cost \$8.75. At the same rate, what do 8 pounds cost?
    Independent answer
    \$1.75 a pound, so \$14.00.
    RatMath code
    R`8.75 / 5 * 8`
    Output
    14
  2. 2.Percent changeAgrees
    A plant grows from 40 cm to 52 cm. What is the percent increase?
    Independent answer
    12/40=0.3012/40 = 0.30, a 30% increase.
    RatMath code
    R`(52 - 40)/40 * 100`
    Output
    30
  3. 3.Discount and taxAgrees
    A \$60 shirt is 25% off, and 8% sales tax is charged on the sale price. What is the total?
    Independent answer
    Sale price \$45; with tax 45×1.08=$48.6045 \times 1.08 = \$48.60.
    RatMath code
    R`60 * (1 - 0.25) * 1.08`.toDecimal()
    Output
    48.6
  4. 4.Simple interestAgrees
    How much simple interest does \$1200 earn at 3.5% a year for 4 years?
    Independent answer
    1200×0.035×4=$1681200 \times 0.035 \times 4 = \$168.
    RatMath code
    finance.simpleInterest(1200, "0.035", 4).interest
    Output
    168
  5. 5.Adding signed fractionsAgrees
    −34+56-\tfrac34 + \tfrac56
    Independent answer
    −912+1012=112-\tfrac{9}{12} + \tfrac{10}{12} = \tfrac{1}{12}.
    RatMath code
    R`-3/4 + 5/6`
    Output
    1/12
  6. 6.Multiplying signed decimalsAgrees
    (−2.5)(−4)(−0.3)(-2.5)(-4)(-0.3)
    Independent answer
    10×(−0.3)=−310 \times (-0.3) = -3.
    RatMath code
    R`(-2.5)*(-4)*(-0.3)`
    Output
    -3
  7. 7.Dividing signed fractionsAgrees
    −78÷214-\tfrac78 \div \tfrac{21}{4}
    Independent answer
    −78⋅421=−28168=−16-\tfrac78 \cdot \tfrac{4}{21} = -\tfrac{28}{168} = -\tfrac16.
    RatMath code
    R`(-7/8) / (21/4)`
    Output
    -1/6
  8. 8.Repeating decimalsAgrees
    Write 211\tfrac{2}{11} as a decimal.
    Independent answer
    0.18‾=0.181818…0.\overline{18} = 0.181818\ldots
    RatMath code
    R`2/11`.toRepeatingDecimal()
    Output
    0.#18
    RatMath writes the repeating block after #: 0.#18 is 0.18‾0.\overline{18}.
  9. 9.Simplifying expressionsAgrees
    Simplify 3(2x−5)−4(x−7)3(2x - 5) - 4(x - 7).
    Independent answer
    6x−15−4x+28=2x+136x - 15 - 4x + 28 = 2x + 13.
    RatMath code
    symbolic.expand("3(2x - 5) - 4(x - 7)")
    Output
    2*x + 13
  10. 10.Two-step equationAgrees
    Solve 2.5x−4=112.5x - 4 = 11.
    Independent answer
    2.5x=152.5x = 15, x=6x = 6.
    RatMath code
    symbolic.solve("2.5x - 4 = 11", "x")
    Output
    x = 6
  11. 11.Equation with parenthesesAgrees
    Solve −3(x+2)=21-3(x + 2) = 21.
    Independent answer
    x+2=−7x + 2 = -7, x=−9x = -9.
    RatMath code
    symbolic.solve("-3(x + 2) = 21", "x")
    Output
    x = -9
  12. 12.Two-step inequalityAgrees
    Solve −2x+5≥13-2x + 5 \ge 13.
    Independent answer
    −2x≥8-2x \ge 8, so x≤−4x \le -4 (the inequality flips).
    RatMath code
    symbolic.solveInequality("-2x + 5 >= 13", "x")
    Output
    (-inf, -4]
  13. 13.Scale drawingAgrees
    On a floor plan 1 inch represents 12 feet. A room is 3.5 inches long on the plan. How long is the room?
    Independent answer
    3.5×12=423.5 \times 12 = 42 feet.
    RatMath code
    R`3.5 * 12`
    Output
    42
  14. 14.CirclesAgrees
    A circle has radius 5 cm. Find its circumference and its area, in terms of π\pi.
    Independent answer
    C=10πC = 10\pi cm, A=25π cm2A = 25\pi\ \text{cm}^2.
    RatMath code
    [symbolic.simplify("2*pi*5"), symbolic.simplify("pi*5^2")]
    Output
    [10*pi, 25*pi]
  15. 15.Supplementary anglesAgrees
    Two supplementary angles measure (3x+10)∘(3x + 10)^\circ and (2x−5)∘(2x - 5)^\circ. Find xx and both angles.
    Independent answer
    5x+5=1805x + 5 = 180, x=35x = 35; the angles are 115∘115^\circ and 65∘65^\circ.
    RatMath code
    const s = symbolic.solve("(3x + 10) + (2x - 5) = 180", "x");
    PRINT(s);
    const x = R`35`;
    [x, R`3*${x} + 10`, R`2*${x} - 5`]
    Output
    [35, 115, 65]
  16. 16.Surface areaAgrees
    Find the surface area of a rectangular prism 4 cm by 5 cm by 6 cm.
    Independent answer
    2(20+24+30)=148 cm22(20 + 24 + 30) = 148\ \text{cm}^2.
    RatMath code
    geo.box(4, 5, 6).surfaceArea
    Output
    148
    box builds the prism as an exact polyhedron with its surface area and volume.
    Fix: ratmath/geo#11, measurement helpers, 3D vector and plane, conicProperties; topology: surface, simplicialComplex, finite spaces
  17. 17.Simple probabilityAgrees
    A bag has 3 red, 5 blue and 2 green marbles. One is drawn at random. What is the probability that it is not blue?
    Independent answer
    5/10=1/25/10 = 1/2.
    RatMath code
    stats.finite({ red: 3, blue: 5, green: 2 }, { normalize: true }).prob((c) => c !== "blue")
    Output
    1/2
  18. 18.Compound eventsAgrees
    Two fair dice are rolled. What is the probability that the sum is 8?
    Independent answer
    (2,6), (3,5), (4,4), (5,3), (6,2): 5/365/36.
    RatMath code
    stats.dice(2).prob(([a, b]) => a + b === 8)
    Output
    5/36
  19. 19.Repeated trialsAgrees
    A fair coin is flipped 3 times. What is the probability of exactly two heads?
    Independent answer
    HHT, HTH, THH: 3/83/8.
    RatMath code
    stats.binomial(3, R`1/2`).pmf(2)
    Output
    3/8
  20. 20.Predicting from a sampleAgrees
    In a random sample of 50 of a school's 1200 students, 18 prefer soccer. Predict how many students in the school prefer soccer.
    Independent answer
    18/50=36%18/50 = 36\%; 0.36×1200=4320.36 \times 1200 = 432.
    RatMath code
    R`18/50 * 1200`
    Output
    432