Difference between revisions of "IB Computer Science 2"
From WLCS
(→Thursday - Friday (9/25/14 - 9/26/14)) |
|||
Line 1: | Line 1: | ||
+ | == 9/29/14) == | ||
+ | '''Agenda:''' | ||
+ | * Two-Dimensional Array Assignment | ||
+ | *# Write a function: '''matrixAdd(m1, 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''') | ||
+ | *# Write a function: '''fliplr(m)''' that returns a new matrix that is the horizontal flip (left to right) of matrix '''m''' | ||
+ | *#* [http://www.mathworks.com/help/matlab/ref/fliplr.html MATLAB fliplr() description] | ||
+ | *# Write a function: '''flipud(m)''' that returns a new matrix that is the vertical flip (up to down) of matrix '''m''' | ||
+ | *#* [http://www.mathworks.com/help/matlab/ref/flipud.html MATLAB flipup() description] | ||
+ | *# Write a function: '''matrixMult(m1, m2)''' that returns the product of matrix m1 and m2 | ||
+ | *#* Be sure to check the rules of matrix multiplication | ||
+ | *#* Return an '''null''' matrix if their sizes are different | ||
+ | * Challenge: Write the function '''det(m)''' which returns the determinant of any matrix m | ||
+ | |||
== Thursday - Friday (9/25/14 - 9/26/14) == | == Thursday - Friday (9/25/14 - 9/26/14) == | ||
'''Agenda:''' | '''Agenda:''' |
Revision as of 07:15, 29 September 2014
Contents
- 1 9/29/14)
- 2 Thursday - Friday (9/25/14 - 9/26/14)
- 3 Tuesday - Wednesday (9/23/14 - 9/24/14)
- 4 Friday - Monday (9/19/14 - 9/22/14)
- 5 Wednesday - Thursday (9/17/14 - 9/18/14)
- 6 Monday - Tuesday (9/15/14 - 9/16/14)
- 7 Thursday - Friday (9/10/14 - 9/12/14)
- 8 Friday - Wednesday (9/5/14 - 9/10/14)
- 9 Wednesday - Thursday (9/3/14 - 9/4/14)
- 10 Tuesday (9/2/14)
9/29/14)
Agenda:
- Two-Dimensional Array Assignment
- Write a function: matrixAdd(m1, 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)
- Write a function: fliplr(m) that returns a new matrix that is the horizontal flip (left to right) of matrix m
- Write a function: flipud(m) that returns a new matrix that is the vertical flip (up to down) of matrix m
- Write a function: matrixMult(m1, m2) that returns the product of matrix m1 and m2
- Be sure to check the rules of matrix multiplication
- Return an null matrix if their sizes are different
- Write a function: matrixAdd(m1, m2) that returns a new matrix that is the sum of m1 and m2
- Challenge: Write the function det(m) which returns the determinant of any matrix m
Thursday - Friday (9/25/14 - 9/26/14)
Agenda:
- 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 the function matrixPrint(m)
- Two-Dimensional Array Assignment
- Write a function: matrixAdd(m1, 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)
- Write a function: matrixMult(m1, m2) that returns the product of matrix m1 and m2
- Be sure to check the rules of matrix multiplication
- Return an null matrix if their sizes are different
- Write a function: matrixAdd(m1, m2) that returns a new matrix that is the sum of m1 and m2
- 2-D array deep copying
import copy
m2 = copy.deepcopy(m1)
- Write a function: fliplr(m) that returns a new matrix that is the horizontal flip (left to right) of matrix m
- Write a function: flipud(m) that returns a new matrix that is the vertical flip (up to down) of matrix m
- Challenge: Write the function det(m) which returns the determinant of any matrix m
Tuesday - Wednesday (9/23/14 - 9/24/14)
Agenda:
- Bubble Sort - Media:Sorting.pptx
- Make sure you have completed the CodingBat Array Review
- Complete 10 of your choice from Array2
- Demo JavaSelectionSortAssignment.java
- Complete JavaBubbleSortAssignment.java
- Introduction to Quicksort
Friday - Monday (9/19/14 - 9/22/14)
Warmup:
- Create a 2-3 person group
- Take some (~6) playing cards
- Lay them out randomly in a row (out of order)
- As a team, discuss an algorithm to sort them
- You are only allowed to swap cards (i.e. they cannot be removed or added to a new array)
- Sort them in numerical order (Ace is high)
- Write down the basic steps to your algorithm
Agenda:
- Introduction to Sorting Activity
- Selection Sort - Media:Sorting.pptx
- Complete JavaSelectionSortAssignment.java by next class
- CodingBat Array Review - due Monday (9/22/14)
- Work on JavaBubbleSortAssignment.java
Wednesday - Thursday (9/17/14 - 9/18/14)
Warmup:
- Review Binary Search in Media:Searching.pptx
Agenda:
- Review Searching - Media:Searching.pptx
- Complete JavaSearchAssignment.java
- Linear Search
- Binary Search
Monday - Tuesday (9/15/14 - 9/16/14)
Agenda:
- Demo Guessing Game Assignment in Java
- Review Java Arrays
- Searching - Media:Searching.pptx
- Linear Search
- Binary Search
- Complete JavaSearchAssignment.java
- CodingBat Array Review
Thursday - Friday (9/10/14 - 9/12/14)
Agenda:
- Quiz on Media:SystemDesignBasics.pptx
- Java Review
- Simple main method
- Weapon, Creature, CombatSimulation
- Java Programming Cheatsheet
- Java Practice
- Java input with Scanner
- Circle circumference and area calculator
- Recreate the Guessing Game Assignment in Java
- You may need to look up how to do random numbers in Java
- You can always refer to the Java Programming Cheatsheet
Friday - Wednesday (9/5/14 - 9/10/14)
Warmup:
- Turn in signed syllabus sheet if you have it
- Submit Internal Assessment Criteria A & B via Google Classroom
Agenda:
- Media:SystemDesignBasics.pptx
- Quiz on Media:SystemDesignBasics.pptx on Thursday, Friday (9/11/14, 9/12/14)
- Internal Assessment discussions
- Usability Assignment
- Sign into your APS Google account
- Open a Google Doc and title it Usability Assignment
- Put your name at the top
- Use Nielsen's 10 Usability Heuristics
- Find 2 examples of good usability
- Take a screenshot or find a picture of the example
- Paste it into the Google Doc
- Point out or highlight the specific usability aspect somehow (in red or bright green are best)
- State which usability rule the example is following, and describe how it follows it
- Repeat for each of the 2 examples of good usability (each example should be a different usability rule)
- Find 2 examples of bad usability
- Take a screenshot or find a picture of the example
- Paste it into the Google Doc
- Point out or highlight the specific usability aspect failure (in red or bright green are best)
- State which usability rule the example is breaking, and describe how it breaks it
- Repeat for each of the 2 examples of bad usability (each example should be a different usability rule)
- Submit the document through Google Classroom
Wednesday - Thursday (9/3/14 - 9/4/14)
Agenda:
- IB Computer Science II Syllabus
- Signed syllabus sheets due by the end of next week
- Google Classroom
- Sign into your APS Google accounts
- Class code: gaxvqsv
- Internal Assessment Discussions
Tuesday (9/2/14)
- Re-introductions
- Name cards
- Guest login
- Username: guest
- No password (just hit enter)
- Complete the Student Survey
- Internal Assessment Discussion