# All posts by Max Johnson

## 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-5fc51e27913c4270089475/] The Python Code Download the Python Code [crayon-5fc51e27913cd967989684/] Fibonnacci Recursion … Continue reading Fibonacci Sequence Code and Animation Explained →

## 5 Tips for the AP Computer Science A Exam

Tip 1  : Floating Point Error! If you are asked to compare doubles with either “==” or “!=” the answer is probably “Floating point error”!   (demo of floating point error in Java)   Tip 2 : Constructors are not inherited! The code below fails because constructors are not inherited! public class SuperClass{ } public class … Continue reading 5 Tips for the AP Computer Science A Exam →

## Why Learn to Code?

When most people think of computer programming, images like this commonly come to mind:   Seemingly matrix-like, it’s no wonder why most people are easily dissuaded from ever attempting to learn computer science, or only imagine it as the subtext of a virtual world. In reality, computer programming is more accessible than is dreamed, … Continue reading Why Learn to Code? →