|
-
Jun 5th, 2005, 09:15 PM
#1
Thread Starter
Admodistrator
Ti-83 help?
Okay, im having troubles with a game im making..its a menu game like pimpquest...
but what the problem is two things:
i cant get loops to work for my life, so examples would be great
and secondly, my variables are wrong. I type x = "Hello"
then later on ill type: disp x
and it will return nothing...
if you need all the code i guess ill post it, but it will take hours
-
Jun 6th, 2005, 01:18 AM
#2
Re: Ti-83 help?
Don't you have an emulator for your PC? I am pretty sure you can download one.
-
Jun 6th, 2005, 02:15 AM
#3
Re: Ti-83 help?
Loops
Just like VB there are several ways of doing loops.
The simplest way is to use a label at the start of the loop and a Goto within an If block at the end of the loop, but that's pretty crude.
*digs out manual* 
Next there is a the For loop. The syntax of this is very like C++.
Code:
For(variable, begin, end, [incremenent])
commands
End
So an example would be
Code:
For(A,0,5,1)
Disp A
End
And the output would be
Next there is the While loop, which is equivalent to VB's Do While (condition).
Code:
While [condition]
commands
End
And then there is Repeat which is equivalent to Do Until.
Code:
Repeat [condition]
commands
End
Strings
You can't store strings within the numerical variables. What you can do is store them within the 10 string variables which are under Vars->7:String.
e.g.
Code:
"HELLO" -> Str1
Disp Str1
output is
HTH
-
Jun 6th, 2005, 11:34 AM
#4
Thread Starter
Admodistrator
Re: Ti-83 help?
i dont have an emulator on my pc. the dang calculator thing at the bottom got cookies in it and doesnt work anymore..thanks alot for the loops, i like the if with a goto loop the best here, but i dont want to run out of ram...so ill figure stuff out..thanks
-
Jun 6th, 2005, 07:21 PM
#5
Re: Ti-83 help?
Hey, I think I may still have one of those sitting in a drawer somewhere 
Check out this link: There are lots to choose from
http://www.ticalc.org/basics/calculators/ti-83.html
-
Jun 8th, 2005, 12:21 PM
#6
Thread Starter
Admodistrator
Re: Ti-83 help?
okay , so ive got it working (the variables)
now how do i get the variable to minus 5 from itself? i thought like
varX = varX - 5
or
varX -> varX - 5
any ideaS?
-
Jun 8th, 2005, 11:05 PM
#7
Re: Ti-83 help?
(X-5) -> X
The assignment operator takes the left hand side and assigns it to the right
-
Jun 9th, 2005, 12:23 AM
#8
Thread Starter
Admodistrator
-
Jun 9th, 2005, 08:48 AM
#9
Re: Ti-83 help?
Was the TI-83 the first in this range to support strings? I have a TI-82 and I can't remember being able to use strings on it.
I don't live here any more.
-
Jun 9th, 2005, 09:05 AM
#10
Re: Ti-83 help?
I believe it was. I just looked through the -82 documentation and couldn't find any reference to string variables, in the places where they occur in the -83 manual.
Do you have Vars->String ?
-
Jun 10th, 2005, 05:13 AM
#11
Re: Ti-83 help?
No. I checked last night and that menu only has 6 entries in it. I used to get around it by having a large and clumsy program that would print string literals to the screen as if it was a string aray. I just set the Theta variable to the number of the string I wanted to show and then call the program, which looked at Theta in an IF block and printed the appropriate string accordingly. Very bodged but it just about did the trick.
I did find the screenshot facility very useful though. For my maths GCSE we weren't allowed to have any programs in our calculators, so I rigged up a screenshot of a blank program menu and showed that to the invigilator when I went in. Very handy.
-
Jun 10th, 2005, 05:27 AM
#12
Re: Ti-83 help?
In South Aus the invigilators come round and watch us while we clear the memory But we're exempt from doing that in Maths subjects 
How do you do a screenshot?
-
Jul 20th, 2005, 07:00 PM
#13
Fanatic Member
Re: Ti-83 help?
 Originally Posted by penagate
In South Aus the invigilators come round and watch us while we clear the memory  But we're exempt from doing that in Maths subjects
How do you do a screenshot?
Some emulators support export screenshots, or most file transfer programs for comp to calc support screenshots.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|