2016-12-05

posted Dec 5, 2016, 8:07 AM by Samuel Konstantinovich   [ updated Dec 5, 2016, 8:08 AM ]

Question 1 from here was your quiz: 
http://www.collegeboard.com/prod_downloads/student/testing/ap/compsci_ab/ap07_comp_sci_ab_frq.pdf

In groups of 2-3 Write the isDone method 3 different ways.
1. One way should be looking for the numbers 1-15 and ignoring a 0.
2. One way should be one that checks adjacent values using nested loops. (the hardest)
3. Modify 2 to use a single loop and variable i, use that to calculate r,c  and check adjacent values.

Your goal should be to write concise elegant code. Try to avoid writing a giant mess with tons of extra  bits.
Comments