AP CompSci A 2018-2019:
How To Iterate?
(January)
LAB06 ScreenCasts
This month we tackled LAB06 which was all about iteration: for & while loops! Before we could start each project, the first thing we had to do was to decide when to use a for loop over a while loop.
For loops are useful when you know exactly how many times you have to iterate. Watch out for that "off by 1 error!" In other words, there's 3 kinds of for loops: the one you want, the one that loops once too many times and the one that doesn't get to the last iteration you needed!
Use a while loop when you need a Boolean to decide when to stop iterating, aka a sentinel. Again, there's 3 kinds of while loops: the one you want, the one that never starts and the one that never ends. Gotta hate those infinite loops. Watch those loop invariants! Don't forget to prime your while loops!
We even played with our own iterator classes as well as java.math.BigIntegers and java.math.BigDecimals!
BTW, we're loving our new cs50.io, aka c9.io, ide from the Amazon Cloud (AWS)! Don't forget about the Processing IDE! We just started using OpenProcessing online as they've just added Processing.js which is more compatible with Processing's IDE. The default mode is P5.js (javascript) but we switch to Processing.js (java) and all is well! So, we're computing in the cloud even when we use Processing! IDK, is OpenProcessing is on AWS or the Google Compute Platform (GCP)?
For loops are useful when you know exactly how many times you have to iterate. Watch out for that "off by 1 error!" In other words, there's 3 kinds of for loops: the one you want, the one that loops once too many times and the one that doesn't get to the last iteration you needed!
Use a while loop when you need a Boolean to decide when to stop iterating, aka a sentinel. Again, there's 3 kinds of while loops: the one you want, the one that never starts and the one that never ends. Gotta hate those infinite loops. Watch those loop invariants! Don't forget to prime your while loops!
We even played with our own iterator classes as well as java.math.BigIntegers and java.math.BigDecimals!
BTW, we're loving our new cs50.io, aka c9.io, ide from the Amazon Cloud (AWS)! Don't forget about the Processing IDE! We just started using OpenProcessing online as they've just added Processing.js which is more compatible with Processing's IDE. The default mode is P5.js (javascript) but we switch to Processing.js (java) and all is well! So, we're computing in the cloud even when we use Processing! IDK, is OpenProcessing is on AWS or the Google Compute Platform (GCP)?
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 BARRONS BOOK (see me)
REVIEW BARRONS ONLINE
REVIEW APCENTRAL (past FRQs)
REVIEW EDX REVIEW MOOC01
REVIEW UDEMY REVIEW MOOC02
REVIEW CODING_BAT
XTRA CREDIT FILKS RUBRIC
(1 video = up to 5 bonus points):
XTRA CREDIT ARTICLES RUBRIC
(up to 5 articles = 1 bonus point each):
(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.
Well, that's all folks!
Teaching with Technology,
AJG
A. Jorge Garcia
Applied Math, Physics & CompSci
PasteBin SlideShare
MATH 4H, AP CALC: GC or SAGECELL
CSH: SAGE Server
CSH: Interactive Python
APCSA: c9.io
APCSA: openProcessingMATH 4H, AP CALC: GC or SAGECELL
CSH: SAGE Server
CSH: Interactive Python
APCSA: c9.io
Beautiful Mind Soundscape:
No comments:
Post a Comment