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%.
Buttons:
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.
Behind the scenes:
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.
Programming notes:
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.)
Wow, what a creative endeavor! Your loan simulator sounds like an incredibly useful tool, especially with the added touch of those bells and whistles. It's impressive how you've managed to encapsulate such complex financial calculations about easy instant loans into a simple and intuitive interface. Your attention to detail, from the programming notes to the functionality of each button, really shows your dedication to making this simulator as user-friendly as possible. Thank you for sharing your talent and hard work with us!
[Please log in to post a comment]