Unit converter: length, mass, volume, pressure, energy, power, temperature — a TI-84 Plus CE program
UNITCNV is a TI-BASIC program for the TI-84 Plus CE. Pick a quantity, then convert between metric and US units by number: length, mass, volume, pressure, energy, power and temperature (°C, °F, K, °R, refusing anything below absolute zero).
What it asks for and what it shows
It asks for 3 values at its prompts, after you pick option 1 from its menu. In the example below it shows IN, OUT.
Example run
One of its oracle test cases: “5 miles to km”. The inputs are typed in order, and the results are the values the case expects on the screen.
| Step | Value |
|---|---|
| You enter | |
| Menu | option 1 |
| Input 1 | 5 |
| Input 2 | 7 |
| Input 3 | 4 |
| The screen shows | |
IN= | 5 |
OUT= | 8.04672 |
How it's checked
14 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 54 checks.
How E-Code checks every program
Run it or put it on your calculator
- Open the library in the TI-84 Plus CE calculator and pick “Unit converter: length, mass, volume, pressure, energy, power, temperature” (UNITCNV).
- Put it on your own calculator with a computer and a USB cable, or type it in by hand.
Related programs
All TI-84 Plus CE tool programs · All TI-84 Plus CE programs