Welcome, Guest.
Please login or register.
Prompt
Forum Login
Login Name: Create a new account
Password:     Forgot password

BlueCrimson Ti Calculator Forum    Ti Community Forum    Ti-Nspire  ›  Prompt Moderators: Administrator Group
Users Browsing Forum
No Members and 1 Guests

Prompt  This thread currently has 3,850 views. Print Print Thread
1 Pages 1 Recommend Thread
insertnamehere
March 14, 2008, 6:30pm Report to Moderator Report to Moderator
Baby Member
Posts
1
Posts Per Day
0.00
Time Online
7 minutes
Question:

How do I prompt a user to define a variable?  i.e. to display the phrase "Enter an integer" and have whatever the user inputs define the variable for the program.

I do have the latest updated version of the operating system.
Logged Offline
Private Message Private message
fryedsoft
March 16, 2008, 2:31am Report to Moderator Report to Moderator

Fryed Software
Posts
127
Posts Per Day
0.02
Reputation
100.00%
Reputation Score
+1 / -0
Time Online
24 days 11 hours 1 minutes
Location
Farrell, PA
You cant. This is one of the big problems with the NSpire right now and is one of the big reasons why I don't have one. There are ways around it as you can see below, but they are not the best. Lately, it seems like Ti is finally coming to their senses and are adding programming support in the NSpire, but the latest firmware has limited programming support that still borders on functions instead of full blown programs. They still have a long way to go before the NSpire can run programs like an 89 or an voyage 200.

Anyway, this is what the nspire handbook recommends. It's not the best way but it's the only way until they add input support to the NSpire programming language. Presonally, I'd go with option 3.

Quoted from The Ti-Nspire Handbook
To input values into a function or program, you can:

• Require users to store values to specific variables beforehand. The object can then refer to these variables

Define calculatearea()=
Prgm
area:=wt*ht
EndPrgm

• Embed the values directly in the object itself

Define calculatearea()=
Prgm
wt:=3
ht:=23
area:=wt*ht
EndPrgm

• Use parameters in the definition. This lets users pass one or more values as arguments to the object when they use it.

Define calculatearea(wt,ht)=
Prgm
area:=wt*ht
EndPrgm



Revision History (1 edits)
fryedsoft  -  March 16, 2008, 2:42am
Logged Offline
Site Site Private Message Private message Reply: 1 - 1
1 Pages 1 Recommend Thread
Print Print Thread


Thread Rating
There is currently no rating for this thread