124Mathematics · Approximation and bounds

Claimed Total and Rounding Intervals

Claimed Total and Rounding Intervals

Compare the possible physical total with a claimed rounded total. Read both rounding intervals and decide whether their overlap makes the claim possible.

  • 60 bytes
  • COMP mode
01

Worked examples

Example 1

Original practice. Can the claimed total rounded to D to the nearest X be true? Give both intervals. A=4; B=100 g; C=10 g; D=400 g; X=10 g.

Answer
[L,U)=[380,420) g; [Q,R)=[395,405) g; Possible
Standard solution (without a calculator)
  1. 95≤w<105 g ⇒ 380≤T<420 g
  2. 395≤S<405 g
  3. [380,420)∩[395,405)=[395,405)≠∅
  4. Expand or substitute to verify each equality above.
Do it on the calculator

Example 2

Original practice. Can the claimed total rounded to D to the nearest X be true? Give both intervals. A=6; B=50 g; C=10 g; D=270 g; X=10 g.

Answer
[L,U)=[270,330) g; [Q,R)=[265,275) g; Possible
Standard solution (without a calculator)
  1. 45≤w<55 g ⇒ 270≤T<330 g
  2. 265≤S<275 g
  3. [270,330)∩[265,275)=[270,275)≠∅
  4. Expand or substitute to verify each equality above.
Do it on the calculator

Example 3

Original practice. Can the claimed total rounded to D to the nearest X be true? Give both intervals. A=2; B=20 g; C=10 g; D=60 g; X=10 g.

Answer
[L,U)=[30,50) g; [Q,R)=[55,65) g; ImPossible
Standard solution (without a calculator)
  1. 15≤w<25 g ⇒ 30≤T<50 g
  2. 55≤S<65 g
  3. [30,50)∩[55,65)=∅
  4. Expand or substitute to verify each equality above.
Do it on the calculator
02

When to use it

Compare the possible physical total with a claimed rounded total. Read both rounding intervals and decide whether their overlap makes the claim possible.

Input order

  • A,B,C,D,X
  • A=n; B=B; C=C; D=D; X=X
  • Enter every value afresh; blank EXE retains old memory and is not zero. All working variables and Ans may be overwritten.

Output order

  • L,U,Q,R; [L,U)∩[Q,R)
  • A is an integer 1–10000, 0≤B≤1000, C∈{0.01,0.1,1,10,100} and B/C is an integer. Also 0≤D≤1000000, X∈{0.01,0.1,1,10,100,1000} and D/X is an integer. Convert both the claim D and its rounding unit X to the same unit as B,C. The program does not enforce this contract. Read four endpoints L,U,Q,R; it does not output a possibility classification. Both upper endpoints are excluded. This program belongs in P2; exit with AC before switching slots. Norm 1 remains active.

Conditions and limits

  • Use COMP and Norm 1; the images use Deg, which does not change this algebra.
  • A∈ℤ,1≤A≤10000; 0≤B≤1000; C∈{0.01,0.1,1,10,100}; B/C∈ℤ; 0≤D≤1000000; X∈{0.01,0.1,1,10,100,1000}; D/X∈ℤ; L≤T<U; Q≤Dtrue<R
  • A is an integer 1–10000, 0≤B≤1000, C∈{0.01,0.1,1,10,100} and B/C is an integer. Also 0≤D≤1000000, X∈{0.01,0.1,1,10,100,1000} and D/X is an integer. Convert both the claim D and its rounding unit X to the same unit as B,C. The program does not enforce this contract. Read four endpoints L,U,Q,R; it does not output a possibility classification. Both upper endpoints are excluded. This program belongs in P2; exit with AC before switching slots. Norm 1 remains active.
  • Use the original equation to check signs, excluded values and endpoint inclusion. Decimal screens are numerical approximations; preserve exact fractions or radicals in written answers.

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.

Checking access…

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.