E-Code

Gas stoichiometry: grams to liters of gas — a TI-84 Plus CE program

By E-Code · updated

GASSTOI is a TI-BASIC program for the TI-84 Plus CE. From grams of a reactant (its molar mass and coefficient) to the moles of a gas product (its coefficient) and that gas's volume at any temperature and pressure, plus the volume it would have at STP.

What it asks for and what it shows

It asks for 6 values at its prompts. In the example below it shows MOL GAS, V (L), V STP L.

Example run

One of its oracle test cases: “limestone to CO2 at 25 C, 1 atm”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 110
Input 2100.09
Input 31
Input 41
Input 525
Input 61
The screen shows
MOL GAS=0.09991008093
V (L)=2.444341474
V STP L=2.239382437

How it's checked

4 test cases, each checked against the textbook formula it uses. Replayed key by key on a virtual TI-84 Plus CE, they make 18 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

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