Ordered chronologically from 9th to 11th grade.
In 9th grade, we learned about Processing. I found it super fun and self-learned syntax to make my submissions above and beyond the assignment instructions. Here are 9 highlights:
Draw Scratchpad
Agar.io
Ball with Friction Simulator
Tesseract OS (Photo Editor)
Cookie Clicker
Die
Creating these programs took a lot of planning like in the photos below
Sort Method | All | Worst | Best | Random |
---|---|---|---|---|
Bubble Sort | 4.8s | 5s | 0.4s | 0.4s |
Selection Sort | 5.1s | 2.1s | 2.1s | 2.5s |
Insertion Sort | 4s | 1.5s | 0.3s | 1.9s |
Bucket Sort | .7s |
from HashTable import HashTable
ht=HashTable()
>>> ht=HashTable()
>>> ht.set('hi', 'world')
>>> ht.get('hi')
'world'
>>> ht.set('authors', ['joel', 'david'])
>>> print(ht)
HashTable {
authors: ['joel', 'david'],
hi: world
}
>>> ht.has('hi')
True
>>> ht.size()
2
>>> ht.keys()
['authors', 'hi']
>>> ht.values()
[['joel', 'david'], 'world']
>>> ht.remove('authors')
['joel', 'david']
>>> print(ht)
HashTable {
hi: world
}
>>> ht.clear()
>>> print(ht)
{}