Showing posts with label turtle. Show all posts
Showing posts with label turtle. Show all posts

Friday, June 26, 2020

CompSci Honors Chapters 11-17: COVID19 Edition! (May-June)


LAST UPDATE:
CompSci Honors Chapters 11-17: 
COVID19 Edition!
(May-June)

Wow, we've been pretty busy these past several months during the COVID19 shut down! As you can see below, we talked about Recursion (Chapter 11), Polynomials as Lists (Chapter 12), Matrices (Chapter 14) and Encryption (Chapter 17). We even used Matrices in our final project: Conway's Game Of Life Simulation! We used Trinket all year to play with Turtle Graphics every Tuesday for fun. This final project is a culmination of all that work! Good job everyone! Have a great summer!










APRIL UPDATE:
CompSci Honors Chapter Eight: 
How Do You Count?
(April)

Chapter 8 was all about the Counting Principle, Combinations, Permutations and Probability. We even played around a bit with resursive functions such as those that calculator Factorials and Pascal's Triangle numbers! Chapter 9 revisited the concepts of Lists, Tuples, Dictionaries and Files.









MARCH UPDATE:
CompSci Honors Chapter Six: 
What Is Boolean Algebra?
(March)

Chapter 6 was all about Boolean expressions, Boolean Algebra, Truth Tables, Digital Circuit Diagrams, if else, if elif and Predicate Functions. We just barely finished Chapter 6 when the COVID19 scare reared its ugly head. Fun was had by all, even remotely! Chapter 7 extended the idea of truth tables to digital circuits! We even played Rock Paper Scissors and modeled the COVID19 infected population of NYC from 3/1/2020- 3/28/2020.














FEBRUARY UPDATE:
CompSci Honors Chapter Five: 
What Is Positional Arithmetic?
(February)

We completed chapter 5, yeah! We played around with arithmetic in other bases such as Binary, Octal and Hexadecimal. We also learned how to convert a whole number from Decimal to other bases and we learned how to convert whole numbers from other bases to Decimal. We even figured out how to deal with rational numbers and integers in any base. Can you interpret the 2's Complement Binary representation of an integer, aka signed number?











JANUARY UPDATE:
CompSci Honors Chapter Four 
What's A Sequence
(January)
We completed chapter 4, yeah! This chapter was about sequences and series. We played around with for loops, while loops and list comprehensions to find finite and infinite series as summation loops. 

We also made the distinction between Arithmetic vs Geometric series as well as Telescoping series and Recursive sequences. Last, but not least, we talked about finite vs infinite series convergence and divergence!

403 What's A Finite Series?(code)

404 What's An Infinite Series(code)

405(even) What Is Iteration?(code)

405(odd) What's Is Iteration?(code)

DECEMBER UPDATE:
CompSci Honors Chapter Four 
What's A Sequence
(December)
Unfortunately, we did not progress as far I thought we might this month. Currently, we are in the middle of 403 What's A Finite Series. So, I only have screen-cast summaries for 402 What's A Sequence which was very intricate, detailed and slow going! 

We had a lot of days off this past unit. We also have Trinket Tuesdays every week. Further, we had the Hour Of Code around Grace Hopper's birthday (1 day for my students and 1 day for honors math students as an in-school field trip). Last, but not least, we had rehearsals every day for our Compsci Carols and we just went caroling on 12/20/19 (our last day before break)! 

So, below you will find summaries for 402 only. We'll finish 403 after December Break. Then 404 will be about Infinite Series and 405 will be about Iteration. Chapters 5-7 will be about Binary, Decimal and Hexadecimal conversions, operations, truth diagrams, logic gates and circuit diagrams!

402A What's A Sequence?(code)

402B What's A Sequence?(code)

402C What's A Sequence?(code)

NOVEMBER UPDATE:
CompSci Honors Chapter Three 
What's A Function
(November)
This month we focused on Chapter 3: What's A Function. We talked about functions with and without arguments. We played around with functions that have a return line and some that didn't. We found out what an argument is and what the type of each argument is. Please see below for new screencasts and code!


CSH302 - What Is A Variable? (code)
CSH303 - What Is Scope? (code)
CSH304 - What Is None? (code)
CSH305 - What Is An Argument? (code)

OCTOBER UPDATE:
CompSci Honors Chapter Two 
What's An Interpreter
(October)
This month we focused on Chapter 2: What's An Interpreter. We continued our work flow as last month with Trinket Tuesdays following http://codeHS.com's python curriculum. However, most days we are using http://sagecell.sagemath.org with our textbook as pictured above. 

Next year, in much the same vain, we would like to use the Big Java textbook with CS50 most days. Tuesdays will be about graphics programming in Processing. Last year we used http://ide.cs50.net (Google Compute Platform) most days and http://processing.org (Amazon Web Services) on Tuesdays. 

Computing in the cloud has proven a very efficient paradigm as we could work on the same projects both in class and at home seamlessly! However, with the advent of the new NYS Ed-2d Student Privacy Law, working in the cloud will prove difficult. I'm looking into installing desktop IDEs for next year instead. We already have the Processing IDE, we just have to install NetBeans or Eclipse.


Please see below for all our ScreenCasts from chapter two in our textbook, "Mathematics For The Digital Age." 



CSH202 - What Is A CPU? (code)


CSH203 - What Is An Interpreter? (code)


CSH204 - Intro To Coding! (code)

SEPTEMBER UPDATE:
CompSci Honors Chapter One
What's An Algorithm
(September)
Welcome to the Grand Experiment! 

For several years now, we've been running a one year AP Computer Science program with less and less success. Years ago, we had a two year program where the first year was an introduction to computer science using python. Our Grand Experiment this year is all about bringing back our intro course so students will have two years experience with coding practice and computer science theory before taking the AP Computer Science A exam. 

BTW, I'm not ScreenCasting our Tuesday experiments. Right now we are using Trinket as an online IDE to play around with Turtle Graphics on Tuesdays. We are using curriculae from codeHS and Runestone! Later in the semester we may try our hand at TI-BASIC on our TI-84Cs!

So, this year we are using the Litvins' textbook most days using SAGE with Tuesdays reserved for something a little different, codeHS curriculum with Trinket. 

Next year, in much the same vain, we will use the Big Java textbook with CS50 most days. Tuesdays will be about graphics programming in Processing.

Please see below for all our ScreenCasts from chapter one in our textbook, "Mathematics For The Digital Age." 


Notes: 
1) Section 100 is not part of the textbook. It's an intro to SAGE.
2) There iare no ScreenCasts for CSH101, CSH201, etc as these are introductory sections for each chapter, so there are no exercises in those sections.
3) Live SageCell code is stored on the sidebar of this blog.

CSH100 - Intro To SAGE (code)




CSH102 - Sets (code)



CSH103 - Functions (code)




CSH104 - Algorithms (code)




CSH105 - Pythonic Functions (code)




XTRA CREDIT FILKS RUBRIC 
(1 video = up to 5 bonus points):
1) Use a recognizable tune.
2) Karaoke entire song changing up the words (about STEAM).
3) You are Singing, Dancing or Playing an instrument.
4) You upload your video to YouTube and provide the url (or email me *.MP4 file).
5) YouTube Description includes the lyrics (or email me *.PDF file).

XTRA CREDIT ARTICLES RUBRIC
(up to 5 articles = 1 bonus point each):
1) Cover Sheet is a Summary of the article.
2) FullPage, 12 pt, DoubleSpaced, 1" Margin.
3) Article has to be STEAM related
4) Article has to be a current event.
5) Copy of entire article is attached.

Sincerely,


Well, that's all folks!
A. Jorge Garcia

 

Applied Math, Physics & CompSci
PasteBin SlideShare 
(IDEs)
MATH 4H, AP CALC, CSH: SAGECELL
CSH: Trinket.io
APCSA: c9.io
APCSA: openProcessing
REPOS: GitHub

(Curriculae)
CSH: CodeHS
APCSA: Big Java

Friday, May 1, 2020

Computing Science Education 2020 (Part 3 of 3)

Computing Science Education 2020 
(Part 3 of 3)



In conclusion, we are finally seeing the promise of cloud based computing come to fruision! Nowadays, all you need is a Chrombook with Google Drive, Google Docs, maybe a few Android apps and a plethora of computing environments at your disposal just a click away all from your browser!



I use SAGE all the time in all my math classes from preCalculus in High School to Multivariable Calculus in College! SAGE is a great Computer Algebra System (CAS) running on the Google Compute Platform (GCP) available to you for free of charge anytime you need it from any browser you want as long as you have internet access! It wasn't too long ago that this kind of computing power came at a heafty price for software not to mention the hardware, maybe even a super computer, to back it up! We have used Mathematica and MATLAB at the high school in the past, but these solutions are expensive! Why not get the best of both worlds with SAGE?



My Intro Computer Science course, Computer Science Honors, was completely online this year as far as computing environments are concerned. We used SAGE a lot for pythonic scripting. We also used Trinket.io whenever we needed turtle.py or visual.py access (aka IDLE and VIDLE).



In AP Computer Science A we used CS50 and OpenProcessing extensively last year! CS50 emulates an Ubuntu Linux Desktop which we used to write and debug all our text based java programs. We used OpenProcessing whenever we wanted to do something graphical in java. CS50 recently launch as Sandbox version adding support of Xwindowed graphical programming as well as Jupyter Notebooks (aka Interactive Python NoteBooks). Next year we need to have all the sites we use sign a waiver to protect student data. SAGE is fine as you don't have to login to use it. You would think it's a problem that you can't print or save your work. However, you can easily download your python scripts for printing. You can even share a permalink url with all your interactive code embedded and encrypted! There's a commercial version of SAGE called CoCalc if you want to save your code online and print to pdf. CoCalc even has a LaTex editor as well as Jupyter Notebooks! Trinket already signed the waiver, thank you! We are still waiting for CS50 and OpenProcessing to come on board. You need a GitHub account to log into CS50 so we sent a waiver there too. Harvard's own Dr. David Malan said he's working on the CS50 waiver. Openprocessing said they make a Sandbox edition where you don't need to login. If we don't get those waivers signed, students may have to download and install the NetBeans and Processing IDEs on their PCs at home (we have these intalled on the school PCs just in case).



It's amazing how far we've come in my 36 years of teaching so far! We were even going build a Linux Cluster out of Raspberry PIs this year when the pandemic hit. We were just starting to render mandelbrot fractal plots in March. One RPI has 4 cores so you can scale up from 1 to 2 to 4 cores to see work up efficiaency ratios improve. We did some 8000x6000 pixel plots with 32 bit color depth in a reasonable amount of time. We were about to scale up the hardware so we could run 8 to 16 to 64 cores when the pandemic shutdown slowed us way down. We would also require a USB power hubs and Ethernet routers with several USB and Ethernet cables to complete the project.



We would also have to enable public key authentcated SSH after installing openSSH as well as openMPI. That reminds me, we used to SSH into school from home and SSH home from school when we setup our own Linux SSH/SFTP servers in school and at home. I still run Linux server at home. We would SSH in from home to finish AP CSA classwork and play around with the cluster. Back then, the cluster was a whole PC Lab/Classroom with 25 PCs each running AMD Athlon Quadcores. One year we had 3 rooms with 75 PCs! So we were running 100-300 cores on Big Iron, not RPIs, getting well over 50-150 GFLOP/s. I ran a Linux shop for 24 years at my high school. Then a new administration came in and said we had to switch to WimpDoze only labs. Figures this happened just when we upgraded to hexacore PCs where I estimated we'd get up to 300 GFLOP/s performance but we never got the chance to try these hexacores out. That's why we are now trying to do the Linux Cluster project on RPIs instead and SSHing to and from home is, of course, blocked. BTW, we'd SSH home to backup files or to check email on our home servers when the school used to block email (but not ssh?)!



We've been using Linux so long that I remember using telnet, rlogin and plain ftp back in the day before setting up ssh and sftp servers! We even had a separate ftp server just to share files with students and faculty. Gosh, I even remember using UNIX in the 1970s and 1980s back in my undergraduate days at Cornell!


Well, that's all folks.

Generally Speaking,
A. Jorge Garcia

 
Applied Math, Physics and CS
www.patreon.com/calcpage2020

www.youtube.com/calcpage2009

calcpage.redbubble.com

society6.com/calcpage






2015 NYS Secondary Math PAEMST Nominee


Teaching with Technology, 
pastebin youtube slideshare 
mathforum apcommunity sage

(IDEs & Code)
MATH 4H, AP CALC, CSH: SAGECELL
(Curriculae)
CSH: CodeHS
APCSA: Big Java
APCSA: CSAwesome

RECOMMENDED AP COMPSCI REVIEW:
CRIB SHEET (given during exam)
REVIEW BARRONS BOOK (see me)
REVIEW BARRONS ONLINE 
REVIEW APCENTRAL (past FRQs)
REVIEW EDX REVIEW MOOC01 
REVIEW UDEMY REVIEW MOOC02 
REVIEW CODING_BAT 
REVIEW PRACTICE_IT 
REVIEW RUNESTONE 
AUDIT CS50

RECOMMENDED AP CALCULUS REVIEW:
CRIB SHEET (not given during exam) 
REVIEW BARRONS BOOK (see me)
REVIEW BARRONS ONLINE 
REVIEW APCENTRAL (latest AB FRQs)
REVIEW APCENTRAL (latest BC FRQs)
REVIEW APCENTRAL (older AB FRQs)
REVIEW APCENTRAL (older BC FRQs)
REVIEW EDX MOOC01 
REVIEW COURSERA MOOC02

XTRA CREDIT FILKS RUBRIC 
(1 video = up to 5 bonus points):
1) Use a recognizable tune.
2) Karaoke entire song changing up the words (about STEAM).
3) You are Singing, Dancing or Playing an instrument.
4) You upload your video to YouTube and provide the url.
5) YouTube Description includes the lyrics.

XTRA CREDIT ARTICLES RUBRIC
(up to 5 articles = 1 bonus point each):
1) Cover Sheet is a Summary of the article.
2) FullPage, 12 pt, DoubleSpaced, 1" Margin.
3) Article has to be STEAM related
4) Article has to be a current event.
5) Copy of entire article is attached.