Hi my name is Alex. I'm currently learning Java whilst also learning to program code on my calculator. Since my classes are heavily math based I am typically turning to my calculator for a lot of help and when I came across this website I realized I could use the source code 3 web application and found it be very useful. I've already made quite a few programs but they're buggy and not really the best since im still a newbie when it comes to programming.
Here's an example of one my programs for figuring out an equation with the Rydberg Constant

Code:

ClrHome
Disp "","****************","*  Programmed  *","*   By Alex    *","*   Capistran  *","****************",""
Pause
ClrHome
Disp "****************","Rydberg constant","= 2.18 x 10^~18J","AKA RH",""
Pause "****************"
ClrHome
(2.18*10^~18)->R
Disp "DeltaE=","Rh((1/n(i)^2)-","(1/n(f)^2))","N=Ni & Nf=M"
Pause "Press Enter"
ClrHome
Prompt N,M
abs((R((1/N^2)-(1/M^2))))->A
Disp A
Pause "Continue?"
Menu("","Yes",1,"No",2)

Lbl 1
(((3.00*10^8)(6.63*10^~34))/abs(A))->B
Disp B
Pause "Do you need NM?.."
Menu("","Yes",3,"No",2)

Lbl 3
int(abs((B/(1.00*10^~9))))->C
ClrHome
Normal
Disp C,"or"
Sci
C->H
Disp H,"Nanometers"
Stop

Lbl 2
Disp "Terminating..."
Stop
Alexlikestheshow wrote:
Here's an example of one my programs for figuring out an equation with the Rydberg Constant

Code:

Disp A
Pause "Continue?"
Menu("","Yes",1,"No",2)


can be

Code:

Menu("Continue?","Yes",1,"No")

And the same here:

Code:

Lbl 1
Menu("Do you need NM?","Yes",3,"No",2)

And here, this can be improved from:
Alexlikestheshow wrote:


Code:

Lbl 2
Disp "Terminating..."
Stop


To:

Code:

Stop
End


Other than that, it looks good!
  
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 1
» 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