Category Archives: Teach CS

Fibonacci Sequence Code and Animation Explained

The Fibonacci Sequence is one of the classic recursive algorithms that you learn in computer science. Mathematically, the fibonacci sequence looks like this f(x) = f(x-1) + f(x-2)  and base values of either f0 =0 and f1=1 The Java Code Download the Java Code [crayon-66222176e175d548861897/] The Python Code Download the Python Code [crayon-66222176e1766770315446/] Fibonnacci Recursion … Continue reading Fibonacci Sequence Code and Animation Explained →

Jeroo While Loops #2

#2 A Create the map below with a flower in 0,0 Jeroo to its right (0,1) using while loop(s) traverse around the border of the island at the end pick the flower you can only use hop() (ie you can’t hop more than 1 space)   #2 B Create the map below Jeroo to its … Continue reading Jeroo While Loops #2 →