Recent Forum Posts

Looking for something?

Don't see a match? Post to the community

From categories:
page 1123...next »

Yikes, this just got tense :P

TI-Basic DudeTI-Basic Dude, optimization is key to programming (specifically TI Basic, where things can get slow very quickly). I was more than happy to have my program optimized because after all, this program is really for Morgan ErnstMorgan Ernst, not us. If your program can be optimized, you should be happy to have someone help you out and make it faster. We're all here to learn and grow in our programming knowledge, not restrict it. Don't be afraid to learn (or be helped), just go for it (or accept the help)!

Additionally, this doesn't follow the grading format the Morgan Ernst wanted. You gotta keep that in mind too.


tibasicdevsig3.png

WHY would you store it just to display it? Using the code BattlesquidBattlesquid, burrburr, and I worked out there is not a lot of conditionals, and hardly any extra variables used.

With your method of storing the exact answer to a string you would need to do what the OP was doing where you check if its in the bounds, and then display it. The only difference is that you would store it and only display it once. The optimized routine that we suggested is way more efficient, uses less conditional statements, and still gives the correct answer every time. Not to mention that it doesnt overwrite the string variables


-live the life because the life is good -vivir la vida, porque la vida es buena
-Vie la vie que la vie est bonne -quod est bonum vitae in vita
-lebe das Leben, weil das Leben ist gut -vivere la vita, perché la vita è buona

Re: Grading Program by TrenlyTrenly, 23 Aug 2017 19:46

Because after you store the text into Str1, you can display the var, then delete it.

Re: Grading Program by TI-Basic DudeTI-Basic Dude, 23 Aug 2017 17:40

He did custom styling, he didnt use a code block


-live the life because the life is good -vivir la vida, porque la vida es buena
-Vie la vie que la vie est bonne -quod est bonum vitae in vita
-lebe das Leben, weil das Leben ist gut -vivere la vita, perché la vita è buona

Re: Grading Program by TrenlyTrenly, 23 Aug 2017 14:46

I already dont think that will work as not all the “points” on that scale are weighted evenly. For example: a 4 and a 3 total a 7/8 points. With a 4 and a 3 in his class he would get a 95%, but if you do 7/8 it shows as 87.5


-live the life because the life is good -vivir la vida, porque la vida es buena
-Vie la vie que la vie est bonne -quod est bonum vitae in vita
-lebe das Leben, weil das Leben ist gut -vivere la vita, perché la vita è buona

Re: My Grading Program Version by TrenlyTrenly, 23 Aug 2017 14:45

Why would you do that? You still need to display it somehow, and theres really no need to store it to a variable


-live the life because the life is good -vivir la vida, porque la vida es buena
-Vie la vie que la vie est bonne -quod est bonum vitae in vita
-lebe das Leben, weil das Leben ist gut -vivere la vita, perché la vita è buona

Re: Grading Program by TrenlyTrenly, 23 Aug 2017 14:42

This is my version:

PROGRAM:GRADING
Clear Entries
ClrHome
Disp "Please enter the","total points","possible.
Input "Total=",T             //The maximum score (ex:20)
Disp "Enter your","score.
Input "Score=",S
Disp "Calculating...
S/T→A
A*100→A
Ipart(A→A        //This will be the percentage of the score.
"Failing
If A>59
"Passing
Ans→Str1
rand(50      //Time delay, this will act like the program is professional.
ClrHome
Disp "Your Results:
Output(2,1,"0
For(I,0,A
Output(2,1,I
Output(2,4,"%
rand(2
End
Output(3,1,"Status:
Output(3,8,Str1
Output(8,1,"Press ENTER.
Pause
ClrHome

This is MY VERSION. DO NOT OPTIMIZE. Or, it will no longer be my version and unique!

Is the TI-Basic Code using the Javascript code block? I do not think it is suppost to be blue.

Re: Grading Program by TI-Basic DudeTI-Basic Dude, 23 Aug 2017 14:05
Re: Nspire CSS
BattlesquidBattlesquid 23 Aug 2017 13:55
in discussion Forum 101 / Announcements » Nspire CSS

Thanks Timothy Foster! We've been needing something like this for a while :)


tibasicdevsig3.png
Re: Nspire CSS by BattlesquidBattlesquid, 23 Aug 2017 13:55
Nspire CSS
Timothy FosterTimothy Foster 23 Aug 2017 13:22
in discussion Forum 101 / Announcements » Nspire CSS

From now on, you can edit this page to affect the styling of all Nspire pages and not just the home page.


Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me

Nspire CSS by Timothy FosterTimothy Foster, 23 Aug 2017 13:22
Re: Grading Program by BattlesquidBattlesquid, 23 Aug 2017 02:29

You can shave off a couple more bytes:


:round(E2(E+.95F+.9G+.8H+.7I)/L,1→P
:int(.1P→X

E2 is the scientific E.

Re: Grading Program by burrburr, 23 Aug 2017 02:23

The startTmr command still uses the built-in clock.

The startTmr command is used with the built-in timer that is available on the TI-84+/SE calculators

As to prevent any confusion, this program would have to be made on the 83+ (if possible).


tibasicdevsig3.png
Re: Time/Weather simulator by BattlesquidBattlesquid, 22 Aug 2017 00:54

Isn’t The timer techncally part of the built in clock? Since thats not available on 83/+ calculators?

Edit: the starttmr page has it tagged with clock.


-live the life because the life is good -vivir la vida, porque la vida es buena
-Vie la vie que la vie est bonne -quod est bonum vitae in vita
-lebe das Leben, weil das Leben ist gut -vivere la vita, perché la vita è buona

Re: Time/Weather simulator by TrenlyTrenly, 22 Aug 2017 00:44

By doing StartTmr like,

0→S
StartTmr→T
Repeat getKey
CheckTmr(T
If Ans>0
S+1→S

So, if "Seconds" or "S" was greater than 59 seconds, it will become 0 and minutes will increase by one. Yes, but I do know there is some optimazation that can be made, but I am not a great optimizationist.
But this is one way you can only make your own clock instead of going by or changing the real clock settings. If you did, that would be a big mess. So just do this!

I do all my programming on my calc itself. I use TI-Connect for backups and stuff, but that's about it.


The solution to a complex problem is often a simple answer.

Re: Time/Weather simulator by kg583kg583, 21 Aug 2017 05:06

TI-Connect CE is my go-to IDE, mostly because it allows me to easily transfer files between my computer and my calculator, and because it can take screenshots of my calculator screen.


Eternity; "Did I tell you stories 'bout the saints of old? Stories about their faith?"

Re: Time/Weather simulator by Myles_ZadokMyles_Zadok, 21 Aug 2017 00:34

I stopped using my calculator mostly and instead use wabbitemu with TokenIDE


-live the life because the life is good -vivir la vida, porque la vida es buena
-Vie la vie que la vie est bonne -quod est bonum vitae in vita
-lebe das Leben, weil das Leben ist gut -vivere la vita, perché la vita è buona

Re: Time/Weather simulator by TrenlyTrenly, 20 Aug 2017 22:33

Heh, I create my programs on calc, mostly because I don't have a GRAPHLINK cable anymore. Using an IDE is pretty great though (I personally like SourceCoder 3).


tibasicdevsig3.png
Re: Time/Weather simulator by BattlesquidBattlesquid, 20 Aug 2017 21:38

I'm the same way. I prefer to use an IDE on my computer than to try to type stuff in on my calculator. If I know that the program will be short, and I'm in a hurry, then I may make it on my calculator, but that isn't the case very often.


Eternity; "Did I tell you stories 'bout the saints of old? Stories about their faith?"

Re: Time/Weather simulator by Myles_ZadokMyles_Zadok, 20 Aug 2017 21:26
page 1123...next »