0 Members and 3 Guests are viewing this topic.
:ClrHome:Menu("CHOOSE FORMULA","CIRCLE AREA",1,"SPHERE VOLUME",2):Lbl 1:Prompt R:Output(4,2,"AREA IS:":Output(5,2,RRπ:Goto 3:Lbl 2:Prompt R:Output(4,2,"VOLUME IS:":Output(5,2,(4/3)πRRR:Goto 3:Lbl 3
:ClrHome:Menu("CHOOSE FORMULA","CIRCLE AREA",1,"SPHERE VOLUME",2,"CYLINDER VOLUME",3):Lbl 1:Prompt R:Output(4,2,"AREA IS:":Output(5,2,RRπ:Goto 3:Lbl 2:Prompt R:Output(4,2,"VOLUME IS:":Output(5,2,(4/3)πRRR:Lbl3:Prompt R:Prompt H:Output(4,2,"VOLUME IS:":Output(5,2,RRπH:Goto 4:Lbl 4
Lbl3 should be Lbl 3
:ClrHome:Menu("CHOOSE FORMULA","CIRCLE AREA",1,"SPHERE VOLUME",2,"CYLINDER VOLUME",3,"CONE VOLUME",4,"QUADR PYR VOLUME",5:Lbl 1:Prompt R:Output(4,2,"AREA IS:":Output(5,2,RRπ:Stop:Lbl 2:Prompt R:Output(4,2,"VOLUME IS:":Output(5,2,(4/3)πRRR:Stop:Lbl 3:Prompt R:Prompt H:Output(4,2,"VOLUME IS:":Output(5,2,RRπH:Stop:Lbl 4:Prompt R:Prompt H:Output(4,2,"VOLUME IS:":Output(5,2,(RRπH)/3:Stop:Lbl 5:Prompt L:Prompt H:Output(4,2,"VOLUME IS:":Output(5,2,(LLH)/3:Stop
ClrHomeMenu("CHOOSE FORMULA","CIRCLE AREA",1,"SPHERE VOL.",2,"CYLINDER VOL.",3,"CONE VOL.",4,"QUADR PYR VOL.",5Lbl 1Prompt ROutput(4,2,"AREA IS:Output(5,2,πR²StopLbl 2Prompt ROutput(4,2,"VOLUME IS:Output(5,2,4/3πR³StopLbl 3Prompt R,HOutput(4,2,"VOLUME IS:Output(5,2,HπR²StopLbl 4Prompt R,HOutput(4,2,"VOLUME IS:Output(5,2,R²πH/3StopLbl 5Prompt L,HOutput(4,2,"VOLUME IS:Output(5,2,L²H/3
ClrHome5Menu("CHOOSE FORMULA","CIRCLE AREA",1,"SPHERE VOL.",2,"CYLINDER VOL.",3,"CONE VOL.",4,"QUADR PYR VOL.",5Lbl 1Ans-1Lbl 2Ans-1Lbl 3Ans-1Lbl 4Ans-1Lbl 5Ans-1→JIf not(AnsPrompt ROutput(4,2,"AREA IS:Output(5,2,πR²If J=1Prompt ROutput(4,2,"VOLUME IS:Output(5,2,4/3πR³If J=2Prompt R,HOutput(4,2,"VOLUME IS:Output(5,2,HπR²J=3Prompt R,HOutput(4,2,"VOLUME IS:Output(5,2,R²πH/3J=4Prompt L,HOutput(4,2,"VOLUME IS:Output(5,2,L²H/3
Nice, and happy birthday!
Looks nice! I have a couple of suggestions:1) Change the lines like Prompt R:Prompt H to lines like Prompt R,H. It makes the code a tad bit smaller. 2) Change the Stops to Returns. It really doesn't make much of a difference, but it's a good habit to get into for when you step up to Axe. Oh, and Happy Birthday!
happy birthday scout david! It looks like you're almost done with this project, what is to come next? I'm sure whatever it is will be as great as this one EDIT: well actaully I didn;t read that you were adding new formulas. Sounds great!!!
happy birthday! also, can i refer you to this post to get rid of the lbl's while keeping the simplicity of Menu()?
:ClrHome:Menu("CHOOSE FORMULA","CIRCLE AREA",1,"SPHERE VOL.",2,"CYLINDER VOL.",3,"CONE VOL.",4,"QUADR PYR VOL.",5,"SPHERICAL SRFCE AREA",6,"CYLINDER SRFCE AREA",7,"CONE SRFCE AREA",8:Lbl 1:Prompt R:Output(4,2,"AREA IS:":Output(5,2,RR?:Stop:Lbl 2:Prompt R:Output(4,2,"VOLUME IS:":Output(5,2,(4/3)?RRR:Stop:Lbl 3:Prompt R,H:Output(4,2,"VOLUME IS:":Output(5,2,RR?H:Stop:Lbl 4:Prompt R,H:Output(4,2,"VOLUME IS:":Output(5,2,(RR?H)/3:Stop:Lbl 5:Prompt L,H:Output(4,2,"VOLUME IS:":Output(5,2,LLH/3:Stop:Lbl 6:Prompt R:Output(4,2,"SURFCE AREA IS:":Output(5,2,4?RR:Lbl 7:Prompt R:Prompt H:Output(4,2,"SURFCE AREA IS:":Output(5,2,2?RH+2?RR:Lbl 8:Prompt R,H:Output(4,2,"SURFCE AREA IS:":Output(5,2,(?Rsqrt(HH+RR))+?RR
you can have the 7th option be "other formulas" and make it go to another menu, where you can put 7 more forumulas.
well, with the menu option, you can't. But using a custom menu, you can probably do that