E-Code

Loan payment with a TI-89 dialog — a TI-89 Titanium program

By E-Code · updated

LOAN89 is a TI-89 BASIC program for the TI-89 Titanium. A dialog box asks for amount, yearly rate and years; shows the monthly payment, number of months and total interest.

What it asks for and what it shows

It asks for 3 values at its prompts. In the example below it shows PAYMENT, MONTHS, INTEREST.

Example run

One of its oracle test cases: “30-year mortgage 300000 at 6.5%”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 1300000
Input 26.5
Input 330
The screen shows
PAYMENT=1896.2
MONTHS=360
INTEREST=382633.47

How it's checked

3 test cases, each checked against an independent method. Replayed key by key on a virtual TI-89 Titanium, they make 15 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-89 Titanium finance programs · All TI-89 Titanium programs