Week 1:
Day 1:
I created a random number guessing game (a classic) in TI-Basic, it picks a number from 1 to 100, and you pick a number, gives you hints to decide the next number (like if it's lower or higher) until you get the number right! So far, I haven't learned anything, because this is just purely what I know of TI-Basic.
Code: Select all
PROGRAM:GUESS
:randInt(1,100)->A
:0->B
:While A≠B
:Prompt B
:If B>A
:Then
:Disp "LOWER"
:End
:If B<A
:Then
:Disp "HIGHER"
:End
:End
:Disp "CORRECT!"
I created a program that gets the length of the hypotenuse from the adjacent and opposite side lengths using the Pythagorean theorem.
Code: Select all
PROGRAM:HYPOT
:Prompt A
:Prompt B
:√(A^2+B^2)->C
:Disp C