Loan simulator

Published 2023-06-12



In keeping with my name, I have created a loan simulator. It's nothing fancy, although, I did add
some bells and whistles.
It can handle $120 owed, $120 paid per month, and, interest rates from 100-200%.

X - Move time forward.
O - Move time backward.
Up - Change menu items.
Down - Bring down menu/Change menu items.
Left - Move time forward/Change menu items.
Right - Move time backward/Change menu items.

Take away everything else and this is just a mathematical function f(x)=(Owed-Paid_per_month)*interest.
X grows or shrinks every loop and the result is drawn to the screen.

I used the map and the tline function to create the blue background.
The paid info at the top is not bottom accurate, it is calculated by Paid_per_month*X (or time).
The line graph will have spotty changes if you move back and forth due to the difference in pixel size
versus calculation. (1.5 will round to 2 when drawing.)