Skip to content

Instantly share code, notes, and snippets.

@josephtate
Last active January 31, 2019 00:56
Show Gist options
  • Save josephtate/ef5a806f734f7afc0b8083868bea34cf to your computer and use it in GitHub Desktop.
Save josephtate/ef5a806f734f7afc0b8083868bea34cf to your computer and use it in GitHub Desktop.
Programming Merit Badge Notes

Links for Programming Merit Badge

Slides

Slides: https://prezi.com/g9jymcct-h9_/programming-merit-badge/

Extra stuff:

  1. Intellectual Property
    1. Four types
  2. Difference between owning and licensing
  3. Open vs. Shareware vs. commercial vs. Freeware
  4. 3 Careers

Three Programming Exercises

public class MyClass {
    public static int fibbonacci(int count){
        int ret = 1;
        int prev = 1;
        
        for (int loop = 1; loop < count; loop++) {
            int tmp = ret;
            ret = ret + prev;
            prev = tmp;
        }
        return ret;
    }
    
    public static void main(String args[]) {
        int x=0;
        for (int loop = 0; loop < 30; loop++) {
            System.out.println((loop+1) + " " + fibbonacci(loop));
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment