Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 11-13-2007, 06:14 PM   #1 (permalink)
 
Banned

Join Date: Oct 2006

Posts: 81

williwaw

Default CalcProgrammer1 LOOK HERE PLS

If you have time.....why/where is the infinite loop(y)???

Code:
 //Sets the window size
 0->Xmin
 10->Xmax
 0->Xscl
 0->Ymin
 25->Ymax
 0->Yscl
 
 //Formats window
 RectGC
 CoordOff
 GridOff
 AxesOff
 LabelOff
 
 //Turns on function
 Func
 FnOn
 
 //Draws background
 Line(0,0,0,.5)
 Line(0,.5,.5,.5)
 Line(.25,.5,.25,.9)
 Line(.5,.5,.5,0)
 Line(.5,0,1,0)
 Line(1,0,1,0)
 Line(1,0,2,2)
 Line(2,2,2.5,1.5)
 Line(2.5,1.5,4,5)
 Line(4,5,5,2.5)
 Line(5,2.5,5.5,3)
 Line(5.5,3,6.5,0)
 Line(6.5,0,10,0)
 
//Draws target and places 
//target randomly in window
Lbl A
 0->B
 randInt(7,9)->C
 Line(C,.2,C+.6,.2)
 Line(C,.4,C+.4,.4)
 Line(C,.5,C+.3,.5)
 For(A,1,500)
End

//Parabolic function
//of the missle 
Lbl B
 B+1->B
 Input "R=  ",R
 (-X^2+RX)->Y
 DispGraph
 Pause
 
 For(T,0,10,.25)
 Y-Z
 Pt-On(X,Y)
 If Z<0 or Z=0
End

//Clears input
//and stops program
ClrHome
ClrDraw
Stop
Thanks for looking!

Cheers,
Williwaw

williwaw is offline  
Old 11-13-2007, 06:21 PM   #2 (permalink)
 
Monster Techie

Join Date: Nov 2006

Location: Illinois, USA

Posts: 1,765

CalcProgrammer1 will become famous soon enough

Default Re: CalcProgrammer1 LOOK HERE PLS

Not sure, but For() commands need to be paired with End commands. You have:

For(A,1,500)

with an End right next to it. This will create a delay. Label (Lbl) commands do NOT need an End command, as they are just markers to go to a particular line. Lbl commands are only useful with Goto commands, but I don't see any Goto commands in your program.

Other than that, it's a bunch of code. TI-83 code doesn't run on Linux, TI-83's don't run Linux, and I have NO clue why you put this in the Linux forum. Keep your posts on topic.
__________________

CalcProgrammer1 is offline  
Old 11-13-2007, 07:05 PM   #3 (permalink)
 
Banned

Join Date: Oct 2006

Posts: 81

williwaw

Default Re: CalcProgrammer1 LOOK HERE PLS

Quote:
Other than that, it's a bunch of code. TI-83 code doesn't run on Linux, TI-83's don't run Linux, and I have NO clue why you put this in the Linux forum. Keep your posts on topic.
Thanx for the help...

I only posted here because I saw ur name and not a calc topic...sry

Last edited by williwaw; 11-13-2007 at 07:09 PM.
williwaw is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutdown suddenly and display nothing, pls help!! rikinel Hardware Troubleshooting 6 10-06-2007 12:57 AM
Troubleshooting my rig, pls help Riznarf Building, Buying, or Upgrading High Performance PC Systems 3 10-04-2007 02:37 PM
Having problems with World in conflict...pls help needed krazyq PC Gaming 0 09-26-2007 06:35 PM
hjt log - pls review... trojans I think rod19952007 HijackThis Logs (finished) 1 09-20-2007 08:56 AM