Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - breebreebran

Pages: [1]
1
TI-BASIC / How do I prompt a string?
« on: December 04, 2013, 06:54:36 pm »
I'm using the ti 89 titanium.
I dont have any big programs. I just like to write programs to get me through my math classes.
Here's what all my programs look like.
Code: [Select]
prompt p
if p = 1
then
Prompt b,r,n,t
r/100→x
b/(1+x/n)^(n*t)→l
disp l
else
Prompt b,r,n,t  
r/100 → x  
b*(x/n)/((1+x/n)^(n*t)-1) → m  
disp m
As simple as that.
But what I want to do is instead of prompting p, I want to prompt a string of text.
This program is for my finance class.
So instead of asking for p it'll prompt "present value"
and then I can store that string as p.
So
"present value" → p
if p = 1 then etc
Or like the other prompt in my else.
Prompt b,r,n,t
I want to prompt
ending balance
rate
time
number of compounds
And then store them as a letter.
rate → r
time → t
It just looks prettier to me if it printed a string

Pages: [1]