ClrHome

ClrDraw

AxesOff

DispGraph

BackgroundOn Image1

BackgroundOff

BackgroundOn Image2

BackgroundOff

BackgroundOn Image3

BackgroundOff

BackgroundOn Image4

BackgroundOff

BackgroundOn Image5

BackgroundOff

BackgroundOn Image6

BackgroundOff

BackgroundOn Image7

BackgroundOff

BackgroundOn Image8

BackgroundOff

BackgroundOn Image9

BackgroundOff

BackgroundOn Image0

BackgroundOff

Pause

AxesOn

ClrHome

If anyone has proper code to play the images at a normal rate that would be great, thanks. ]]>

Edit: Found one that will work! I must have mistyped it in the search bar the first time :)

]]>` ``If A>B Then Disp ".." Else If A=B Disp ".." Else Disp "`

You might want to skim the code before continuing, so you understand what I'm saying.

The code runs fine if I say the number ("N") is correct, (press 1, and it displays "Woo hoo!"), or when I tell it the number is lower, (it sets the returned number as the upper limit, and re-runs the equation). But when I try to tell it my desired number is *higher,* it all falls apart, and just returns the same number again. Example:

I set "H" to 100, "L" to 0, and let it run. Calculator returns N, which is 50. When I tell it to go higher, (input "2"), the calculator returns 50 again. The only way I can explain that, is that it's putting "50" in both "H" and "L", which makes no sense. How do I tell it to keep one number the same, and only reset the one I'm telling it to?

Here's the code:

ClrHome

Disp "LOW LIMIT"

Prompt L

Disp "HIGH LIMIT"

Prompt H

Lbl 1

(H+L)/2→N

Disp "CORRECT?",N

Disp "1 IF YES"

Disp "0 IF LOWER"

Disp "2 IF HIGHER"

Prompt A

If A=1

Goto 2

If A=0

N→H

Goto 1

If A=2

N→L

Goto 1

Lbl 2

Disp "WOO HOO!"

Pause

ClrHome

Also, if you know how I could get the calculator to round "N" to the nearest integer, I would appreciate that. Something with the "round(" function, right?

P.S. Please do not tell me to go download an program, or copy someone else's. I'm not doing this to actually utilize program, I'm doing this to learn how these things work.

]]>Any insight is appreciated!

Source:

` ``:Plot1(Scatter,X,Y,. :∟X→P:∟Y→Q :Repeat getKey or S<2 :∟P→X:∟Q→Y :DispGraph :DelVar ∟PDelVar∟Q1→S :For(X,min(∟X)-1,1+max(∟X :For(Y,min(∟Y)-1,1+max(∟Y :sum(1=max(abs(∟X-X),abs(∟Y-Y :3=Ans or 3=Ans-max(∟X=X and ∟Y=Y :If Ans:Then :X→∟P(S :Y→∟Q(S :S+1→S :End:End :End:End :PlotsOff :ClrHome:"`

So I am working on a school project and I was wondering if there was a way to make a program that asks you to insert a function equation, together with an x variable. I want to have the calculator use that x variable to fill the equation in and return you the y value.

I need this to program something else which I have in mind.

I am a novice when it comes to programming but I catch on things quickly, if you can give me an idea or example of how to do it I will be sure to pick it up!

I am using a Ti-84 and the "Ti Connect CE" app to program my calculator.

Any help is very appreciated!

Thanks.

]]>This is using the distance formula (line 7), then the slope formula (line 8).

Thank you!

Here's the code:

Lbl 1

ClrHome

Disp "Point A"

Prompt A,B

Disp "Point B"

Prompt C,D

(C-A)²+(D-B)²→X

√(X)→Y

(D-B)/(C-A)→Z

If Z>0

Disp "SQRT",X

Disp "DISTANCE REAL",Y

Disp "SLOPE",Z

Else

Disp "SQRT",X

Disp "DISTANCE REAL",Y

Pause

Goto 7

Instructions: You start as a pixel in the top-left corner, and you must use the arrow keys to navigate to the bottom-right corner of the maze. If you run into a wall you die. If you die, you can load the last maze that was generated by pressing "LOAD" in the main menu of the game. Press [CLEAR] while playing to go back to the main menu. Make sure to always press "NEW" in the game's main menu when you first play.

*Note* — The sidewinder algorithm for maze generation works well, but it has some biases. So, while each

maze will be unique, many of them will be similar in overall structure. To experiment with different

configurations, edit the specified number that I have marked with a comment in the code (there are

only a couple comments in the code, so you can probably find it :D).

Here's the code (// indicates a comment and the indentation is just to make it look cleaner):

` ``PROGRAM: MAZE Lbl 3 ClrDraw AxesOff FnOff PlotsOff 0->Xmin 94->Xmax -62->Ymin 0->Ymax Menu("_MAZE_-_BY_JOE__" //Underscores are spaces ,"NEW",0 ,"LOAD",1 ,"QUIT",2 Lbl 0 Text(-1,1,65,"MAZE Line(61,-9,92,-9 For(X,1,61,2 Line(X,-1,X,-61 Line(1,-X,61,-X End Line(2,-2,60,-2,0 Pt-Off(61,-60 For(Y,2,30 1->R For(X,1,30 If X≠30 and randInt(0,1 // This is the line that I talked about in the *Note*. Right now, it's configured // so that 50% of the passages are carved horizontally and 50% are carved // vertically. To increase the number of horizontal passages carved, increase // the second argument (1) of randInt(). To increase the number of vertical passages // carved, change the randInt(0,1 to not(randInt(0,1 and increase the value of the // second argument (1) of randInt(). Then Pxl-Off(2Y,2X+1 Else Pxl-Off(2Y-1,2randInt(R,X X+1->R End End End StorePic 0 Lbl 1 RecallPic 0 2->X:2->Y:E3->S // "E" being the character found by pressing [2nd] and then the comma button Repeat K=45 or X=61 or pxl-Test(Y,X Pxl-On(Y,X Repeat Ans getkey->K End Pxl-Off(Y,X S-1->S X+(K=26)-(K=24->X Y+(K=34)-(K=25->Y End Text(15,65,"YOU"+sub("LOSEWIN!",1+4(X=61),4 Text(27,65,"SCORE: Text(-1,34,66,S(X=61 Pause ClrDraw ZStandard AxesOn ClrHome Goto 3 Lbl 2 Disp "83-2(20/4) // You don't need this, it just makes it look like you're 73 // doing math if a teacher walks by and you just quit the game. :D`

As the summary says, I am trying to put a one-line matrix into another matrix that is larger without defining the whole matrix. I am using this in a checkers program to define the positions of the checkers. I want to do something like this…

` ``[[1,0,1,0,1,0,1,0 ->[A] at a specific Y Ans->[A] Another Y Ans->[A] Another Y So on...`

I was wondering if anyone knows how to do this. If not I can just use a for loop, but I was thinking this would be more efficient.

]]>I am working on a reaction game where it displays a number from 1-9 on the graph screen, and you need to push the number displayed on the screen before the time runs out. I have gotten the repeating function of displaying the number.

What I want to know it if you can create a loop, and as soon as you it number 1-9, it exits it, but if you don't press any key, It waits for an amount of time (I would prefer a time that could be displayed as well.

If you have any questions about what I am asking, just ask!

Thanks!

-Edit

I am pretty sure that it has something to do with a While loop, and Boolean Logic, but don't know how to do it.

Thanks!

` ``:asm(`

codes

]]>Here is the code:

Menu("Analytic Geo","Distance",1,"Midpoint",2

Lbl 1

ClrHome

Disp "CO 1"

Prompt A,B

Disp "CO 2"

Prompt C,D

(C-A)²+(D-B)²→X

√(X)→Y

Disp "SQRT",X

Disp "DISTANCE REAL",Y

ClrHome

Lbl 2

ClrHome

Disp "CO 1"

Prompt A,B

Disp "CO 2"

Prompt C,D

(A+C)/2→X

(B+D)/2→Y

Disp "MIDPOINT",X,Y

Thanks! ]]>

1+(E/|E2->E

Any help is welcome

]]>(P.s, I am using a TI-83+) ]]>