IS there anybody here who would be willing to help me out as i learn more about TI Basic because i am a new programmer and i kind of need to know where i should strt
i would start with simple loops like lbls... Gotos and if then statements with inputs and out puts like


Code:

::DCS
:FF81BD81ABD5ABFF
::END
:ClrHome:0→X
:Disp "
:While X≠99.999
:Output(1,1,"99.999 =QUIT
:Input "",X
:Disp X
:End:ClrHome
:Disp "CALC (DOORS CS)","BY KERM MARTIAN

this program uses a while loop to emulate a basic calculator form Doors CS made by Kerm Martian himself
you can use the basic tutor from
http://www.cemetech.net/programs/index.php?mode=folder&path=/text/calcinfo/
Let me break that down for you:


Code:
::DCS
:FF81BD81ABD5ABFF
::END
This is the Doors CS header, it describes an icon for the program.

Code:
:ClrHome:0→X
Each colon starts a new command, so this is two commands, first clear the homescreen, then store 0 into the variable X. They're only on the same line to save scrolling while editing; it wouldn't make a difference if they were on different lines.

Code:
:Disp "
Display a completely blank line. For Disp, the final closing double-quote is almost always omitted to save space.

Code:
:While X≠99.999
As long as X does not equal 99.999, keep looping back to here when you get to the End below.

Code:
:Output(1,1,"99.999 =QUIT
Simple instructions for the user go on the screen at row 1, column 1 (top left of the homescreen).

Code:
:Input "",X
Ask the user for X, but don't print the X=? prompt or anything else.

Code:
:Disp X
Display an evaluated form of X, eg if X was 3+2 at the Input, this would display 5.

Code:
:End:ClrHome
If you reach "End" and X=99.999, then Go to the Disp, otherwise, jump back to the Output(1,1,.....

Code:
:Disp "CALC (DOORS CS)","BY Kerm MARTIAN
End credits.
I dont understand
steelersfan1693 wrote:
I dont understand
Can you be more specific about which parts of it you don't understand?
Laughing http://www.ticalc.org/archives/files/fileinfo/290/29088.html

I would highly suggest starting out writing utilities for math class; for example, a program that solves quadratic equations, or does base conversions, binomial expansion, etc... You'll find yourself much more motivated, and these programs tend to be easy to write, while also helping you adopt important programming techniques/skill.

http://cemetech.net/forum/viewtopic.php?t=1642&start=60
http://cemetech.net/forum/viewtopic.php?t=3224
http://cemetech.net/forum/viewtopic.php?t=3239

the above threads might be helpful for learning a bit about optimization, once you've sorta picked up the language.
rthprog wrote:
0x5 http://www.ticalc.org/archives/files/fileinfo/290/29088.html

I would highly suggest starting out writing utilities for math class; for example, a program that solves quadratic equations, or does base conversions, binomial expansion, etc... You'll find yourself much more motivated, and these programs tend to be easy to write, while also helping you adopt important programming techniques/skill.


And then when you're done submit it to TICalc.org; there's a serious lack of Quadratic Solvers on there.
Ultimate Dev'r wrote:
rthprog wrote:
0x5 http://www.ticalc.org/archives/files/fileinfo/290/29088.html

I would highly suggest starting out writing utilities for math class; for example, a program that solves quadratic equations, or does base conversions, binomial expansion, etc... You'll find yourself much more motivated, and these programs tend to be easy to write, while also helping you adopt important programming techniques/skill.


And then when you're done submit it to TICalc.org; there's a serious lack of Quadratic Solvers on there.


hey, its a good way to start learning how to program in Ti Basic.
True story, and an effective one at that, hence all of the solvers on ticalc.org by new authors. Razz
rthprog wrote:
hey, its a good way to start learning how to program in Ti Basic.
Lol, I can proudly say I have never in my life written a quadratic solver. When I die, I'm getting into heaven! Razz
magicdanw wrote:
rthprog wrote:
hey, its a good way to start learning how to program in Ti Basic.
0x5, I can proudly say I have never in my life written a quadratic solver. When I die, I'm getting into heaven! Razz
YAY! me too!
Eeems wrote:
magicdanw wrote:
rthprog wrote:
hey, its a good way to start learning how to program in Ti Basic.
0x5, I can proudly say I have never in my life written a quadratic solver. When I die, I'm getting into heaven! Razz
YAY! me too!


Good luck with that.
magicdanw wrote:
rthprog wrote:
hey, its a good way to start learning how to program in Ti Basic.
0x5, I can proudly say I have never in my life written a quadratic solver. When I die, I'm getting into heaven! Razz


Its not the writing part that's terrible, its posting it everywhere thinking anyone gives a dammn about it that kills babies.


Code:
:Prompt A,B,C
:(-B+sqrt(B^2 - 4AC))/(2A
:{ Ans, -B/A - Ans


yay, I'm going to hell!
rthprog wrote:
0x5 http://www.ticalc.org/archives/files/fileinfo/290/29088.html

I would highly suggest starting out writing utilities for math class; for example, a program that solves quadratic equations, or does base conversions, binomial expansion, etc... You'll find yourself much more motivated, and these programs tend to be easy to write, while also helping you adopt important programming techniques/skill.

http://cemetech.net/forum/viewtopic.php?t=1642&start=60
http://cemetech.net/forum/viewtopic.php?t=3224
http://cemetech.net/forum/viewtopic.php?t=3239

the above threads might be helpful for learning a bit about optimization, once you've sorta picked up the language.



I know quite a bit im just struggling to put my ideas together and to do what i want
steelersfan1693 wrote:
rthprog wrote:
0x5 http://www.ticalc.org/archives/files/fileinfo/290/29088.html

I would highly suggest starting out writing utilities for math class; for example, a program that solves quadratic equations, or does base conversions, binomial expansion, etc... You'll find yourself much more motivated, and these programs tend to be easy to write, while also helping you adopt important programming techniques/skill.

http://cemetech.net/forum/viewtopic.php?t=1642&start=60
http://cemetech.net/forum/viewtopic.php?t=3224
http://cemetech.net/forum/viewtopic.php?t=3239

the above threads might be helpful for learning a bit about optimization, once you've sorta picked up the language.



I know quite a bit im just struggling to put my ideas together and to do what i want


...so what DO you want to accomplish?
I have an idea but I am at a dead end right now. What I want to do is make a simulation type game.

[u]What I want to make it about is: [/u]
a game where you can manage your own business and their is pre set choices for whether you want it to be a pizzeria, ice cream parlor,bakery,restaurant and etc but my point is I need help on how I should approach it. I have already written the credits screen the animation for the intro screen. I have also written down as notes; the Store types and a few other things so I really am desperate for help with this program.

Exclamation Exclamation
so an rpg? This might not make a lot of sense right now, but all you have to do is set up a tree full of Menu( commands, as well as ClrHome:Output( s. I'll code an example for you as soon as I get a chance... I just want you to write it entirely yourself so that you learn from it =D
The first time I tried to understand Ti-Basic (and i'm still learning, but just on a slower basis) was when I used source code on here to open up a quadratic factor. I didn't quite understand it, so I took a sheet of paper and copied down each line by each line.

And so, I went down the list writing next to each line what happens when it executes, similar to debugging.

Then once I got the grip to it, I try and try to imitate some of the Assembly programs in to Basic. Or in other words, I ported Assembly into Basic.
QuinnZhao wrote:
I try and try to imitate some of the Assembly programs in to Basic. Or in other words, I ported Assembly into Basic.


You ported Assembly programs to Basic? No offense, but BASIC versions will be much, much slower...

Anyways, heres a method of setting up an rpg. Given a tree as shown below, in which the user makes two choices: the first is between A & B, and the second is between /Letter/ 1,2, or 3, the program will output specific text


Code:

A
-A1
-A2
-A3
B
-B1
-B2
-B3




Code:
:Menu("First Choice", "A", A, "B", B
:Lbl A
:Menu("Second Choice", "A1", 1, "A2", 2, "A3", 3
:Lbl 1
:Disp "A1" : Goto 0
:Lbl 2
:Disp "A2" : Goto 0
:Lbl 3
:Disp "A3" : Goto 0
:Lbl B
:Menu("Second Choice", "B1", 4, "B2", 5, "B3", 6
:Lbl 4
:Disp "B1" : Goto 0
:Lbl 5
:Disp "B2" : Goto 0
:Lbl 6
:Disp "B3"
:Lbl 0


=D
rthprog wrote:
QuinnZhao wrote:
I try and try to imitate some of the Assembly programs in to Basic. Or in other words, I ported Assembly into Basic.


You ported Assembly programs to Basic? No offense, but BASIC versions will be much, much slower...


He's doing it to learn BASIC; remember, when you're learning something new you're not going to make anything useful; that comes later.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 2
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement