- prgmNUMSORT (TI-84 Plus Silver [Monochrome])
- 18 Mar 2019 04:54:06 pm
- Last edited by Jasonpm on 18 Mar 2019 08:23:43 pm; edited 1 time in total
Project Name : prgmNUMSORT
Description : I'm looking for someone who would want to do a little coding. I want to make a program and need some help. Basically, you enter a number and it will tell you which of the following groups is falls into (Odious #'s Happy #'s Unhappy #'s Evil #'s Lucky #'s Economical #'s Wasteful #'s) Anyone reading this thread probably has no idea what those numbers are. Look them up cause that is what I did. anyways, I think to do this we have the program run the number through the bounds of the number groups and display that number group when the number falls in it. Hopefully, it is as simple as it sounds and if you want to help just reply.
Why : I compete in math competitions, and believe it or not they ask questions about what number groups a given number falls under. I also want to learn more about programming.
---------------------------------------------------------------------------------------------------------------------
Edit:
The first bit of code completed. This will knock out the Evil and Odious categories. Please Reply with improvements if you see anything that isn't very efficient. Thanks to everyone who helps me. This is a great learning opportunity.
Code:
Description : I'm looking for someone who would want to do a little coding. I want to make a program and need some help. Basically, you enter a number and it will tell you which of the following groups is falls into (Odious #'s Happy #'s Unhappy #'s Evil #'s Lucky #'s Economical #'s Wasteful #'s) Anyone reading this thread probably has no idea what those numbers are. Look them up cause that is what I did. anyways, I think to do this we have the program run the number through the bounds of the number groups and display that number group when the number falls in it. Hopefully, it is as simple as it sounds and if you want to help just reply.
Why : I compete in math competitions, and believe it or not they ask questions about what number groups a given number falls under. I also want to learn more about programming.
---------------------------------------------------------------------------------------------------------------------
Edit:
The first bit of code completed. This will knock out the Evil and Odious categories. Please Reply with improvements if you see anything that isn't very efficient. Thanks to everyone who helps me. This is a great learning opportunity.
Code:
Disp "Enter Number"
Input "To Sort",A
If A>0
Then
16->D
0->dim(L1
While A>0
A/2->B
If int(B)=B
0->C
If int(B)!=B
1->C
iPart(B)->A
C->L1(dim(L1)+1)
End
sum(L1)->E
If remainder(E,2)=0
Then
Disp "Evil"
Else
Disp "Odious"
End
End