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
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
Standard solution (without a calculator)
- 95≤w<105 g ⇒ 380≤T<420 g
- 395≤S<405 g
- [380,420)∩[395,405)=[395,405)≠∅
- Expand or substitute to verify each equality above.
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
Standard solution (without a calculator)
- 45≤w<55 g ⇒ 270≤T<330 g
- 265≤S<275 g
- [270,330)∩[265,275)=[270,275)≠∅
- Expand or substitute to verify each equality above.
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
Standard solution (without a calculator)
- 15≤w<25 g ⇒ 30≤T<50 g
- 55≤S<65 g
- [30,50)∩[55,65)=∅
- Expand or substitute to verify each equality above.
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.
Checking access…