Difference between revisions of "IB Computer Science 2"

From WLCS
 
(416 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
== Tuesday (10/16/18) ==
+
== [[IBCS2 - Archives]] ==
−
'''Agenda:'''
 
−
* Creating a blank image and manipulating the pixels
 
−
*# Rotate 90 degrees clockwise
 
−
* Complete and demo the following image processing filters:
 
−
*# Rotate 90 degrees clockwise of a non-square image (no animation needed)
 
−
*# Mosaic (no animation needed)
 
−
*## Take an image, sample every (10th row, 10th col) pixel's color
 
−
*## Draw a 10x10 square using the sampled pixel's color at ever 10th (x,y)
 
−
*## You should display both the original image and its mosaic
 
−
*# Pointilism Animation
 
−
*## This will be an animation
 
−
*## Within setup(), load an image, load its pixels, and turn off line strokes
 
−
*## Within draw(), generate a random index number from 0 to image's pixel length (use [https://processing.org/reference/random_.html random()])
 
−
*##* int rand = (int) random(0, img.pixels.length);
 
−
*## Sample the color of the pixel from the random index and fill with the color
 
−
*## Calculate the appropriate (x,y) from the random index (Hint: use modulus (%) for x and division (/) for y)
 
−
*## Draw the circle at its appropriate (x,y) using a random diameter from (5, 15)
 
−
 
 
−
== Tuesday - Friday (10/9/18 - 10/12/18) ==
 
−
'''Agenda:'''
 
−
* Demo [[Media:BubbleSort.java]]
 
−
* Algorithms Identification Quiz in Canvas
 
−
* Reference variables overview
 
−
* Two-Dimensional Arrays and Nested Loops
 
−
*# Accessing all of the individual elements of a two-dimensional list
 
−
*# Prompt the user to construct a two-dimensional list
 
−
*## Prompt for the number of rows
 
−
*## Prompt for the number of columns
 
−
*## Prompt the user for each number in the two-dimensional list
 
−
*# Write a method: '''void matrixPrint(int[][] m)'''
 
−
*#* Print each row on a separate line, and each element should be separated by a space
 
−
*#* Complete the method in repl.it
 
−
<!--
 
−
*# Write a method (function): '''double[][] matrixAdd(double[][] m1, double[][] m2)''' that returns a new matrix that is the sum of m1 and m2
 
−
*#* Be sure to check if the two matrices are the same size (if not, then return null)
 
−
-->
 
−
* Nested Loops, Processing & Images
 
−
** Processing coordinate system review (print mouse coordinates)
 
−
** Processing PImage object practice
 
−
** [https://www.processing.org/tutorials/pixels/ Processing: Images & Pixels Tutorial]
 
−
** As a class, we'll walk through several of the examples from the tutorial above, and we'll modify each slightly
 
−
* Image Processing Exercises?
 
−
*# Convert to black and white
 
−
*# Rotate image 90 degrees
 
−
*# Flip vertical
 
−
*# Flip horizontal
 
−
*# Pointilism
 
−
*# Mosaic
 
−
*# Edge detection?
 
−
 
 
−
'''Homework Challenge:'''
 
−
* Try to complete the rotate 90 degrees image challenge
 
−
 
 
−
== Thursday (10/4/18) ==
 
−
'''Agenda:'''
 
−
* Make sure you've completed Selection Sort in repl.it
 
−
** Mr. Bui will be manually looking at your repl.it submissions too
 
−
* Take the Sorting Identification Quiz in Canvas
 
−
** The access code is ...
 
−
* Bubble sort review
 
−
* Complete and demo [[Media:BubbleSort.java]]
 
−
 
 
−
== Tuesday (10/2/18) ==
 
−
'''Warmup:'''
 
−
* Take the Abstract Data Structures Pre-assessment on Canvas
 
−
** Do not guess answers, skip them if you do not know the answer
 
−
* Complete the Find Minimum & Maximum repl.it
 
−
 
 
−
'''Agenda:'''
 
−
* Group sorting activity
 
−
*# Form 3-4 person groups
 
−
*# Receive playing cards
 
−
*# With your group, document an algorithm (steps) of how you sort the cards out
 
−
* Introduction to Sorting
 
−
** [https://docs.google.com/presentation/d/1Y5JOINM2w744nqimZf2iVuFpi6N6gM2B7GM4ArGjChQ/edit?usp=sharing Sorting slides]
 
−
* Selection sort assignment in repl.it
 
−
 
 
−
== Archives ==
 
−
* [[IBCS2 - 1819 - September]]
 
−
* [[IBCS2 Summer Assignment]]
 
−
* [[IBCS2 - 1718]]
 

Latest revision as of 08:28, 13 September 2023