E-Code

Unit converter: length, mass, volume, pressure, energy, power, temperature — a TI-84 Plus CE program

By E-Code · updated

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.

StepValue
You enter
Menuoption 1
Input 15
Input 27
Input 34
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

Related programs

All TI-84 Plus CE tool programs · All TI-84 Plus CE programs