# Difference between revisions of "AP Computer Science"

From WLCS

Line 1: | Line 1: | ||

− | == | + | == Tuesday (2/11/20) == |

'''Agenda:''' | '''Agenda:''' | ||

− | * | + | * NetBeans review |

− | |||

− | |||

− | |||

− | |||

* Complete the ArrayList repl.its | * Complete the ArrayList repl.its | ||

** sum() | ** sum() | ||

Line 35: | Line 31: | ||

*** Employee getLowestPaid() - returns the highest paid Employee | *** Employee getLowestPaid() - returns the highest paid Employee | ||

*** double getSumOfSalaries() - returns the sum total of all the salaries in employees | *** double getSumOfSalaries() - returns the sum total of all the salaries in employees | ||

+ | |||

+ | == Friday (2/7/20) == | ||

+ | '''Agenda:''' | ||

+ | * ArrayList Quiz | ||

+ | * APS Robotics Day volunteers needed | ||

+ | ** Saturday, February 8th from 8:30-12:30 | ||

+ | ** Career Center | ||

+ | * BrickBreaker w/ ArrayLists demos | ||

+ | * ArrayList<Card> examples | ||

+ | ** Total the value of your hand | ||

+ | ** Finding the smallest Card (minimum) | ||

+ | ** Finding the largest Card (maximum) | ||

+ | ** Finding a card (i.e. search) | ||

+ | ** Sort your Cards | ||

+ | * Expectation: you should be able to repeat any of the above with any object! | ||

== Wednesday (2/5/20) == | == Wednesday (2/5/20) == | ||

Line 75: | Line 86: | ||

*** Insertion sort | *** Insertion sort | ||

− | == | + | == [[APCS - 1920 - January]] == |

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

== [[APCS - 1920 - December]] == | == [[APCS - 1920 - December]] == | ||

== [[APCS - 1920 - November]] == | == [[APCS - 1920 - November]] == |

## Revision as of 06:00, 11 February 2020

## Contents

## Tuesday (2/11/20)

**Agenda:**

- NetBeans review
- Complete the ArrayList repl.its
- sum()
- min() & max()

- ArrayList<Card> examples
- Total the value of your hand
- Finding the smallest Card (minimum)
- Finding the largest Card (maximum)
- Finding a card (i.e. search)
- Sort your Cards

- Expectation: you should be able to repeat any of the above with any object!
- Employee class
- instance variables: (these should be private)
- name
- experience
- salary

- methods
- constructors (default and specific)
- setters and getters (accessors and mutators) for all instance variables
- String toString() - returns a String that represents the Employee (all the attributes)

- instance variables: (these should be private)
- Company class
- instance variable:
- ArrayList<Employee> employees

- methods
- constructors (default and specific) - instantiate your ArrayList
- void listAllEmployees() - prints out all the employees
- Employee getMostExperienced() - returns most experienced Employee
- Employee getHighestPaid() - returns the highest paid Employee
- Employee getLowestPaid() - returns the highest paid Employee
- double getSumOfSalaries() - returns the sum total of all the salaries in employees

- instance variable:

## Friday (2/7/20)

**Agenda:**

- ArrayList Quiz
- APS Robotics Day volunteers needed
- Saturday, February 8th from 8:30-12:30
- Career Center

- BrickBreaker w/ ArrayLists demos
- ArrayList<Card> examples
- Total the value of your hand
- Finding the smallest Card (minimum)
- Finding the largest Card (maximum)
- Finding a card (i.e. search)
- Sort your Cards

- Expectation: you should be able to repeat any of the above with any object!

## Wednesday (2/5/20)

**Warmup:**

- Write a Java program that creates an ArrayList<Double>
- Generate 100 random numbers (0 - 1000) and put them in your ArrayList
- Write a loop that finds the minimum and maximum values from your ArrayList
- Print them out

**Agenda:**

- ArrayList Quiz on
**Friday 2/7/20** - Card example
- Create a new repl.it called ArrayList Card Practice
- Create a new file within the repl.it named Card.java
- Copy and paste Mr. Bui's incomplete Card.java file into yours

- public vs private
- examples

- ArrayList<Card> examples
- Total the value of your hand
- Finding the smallest Card (minimum)
- Finding the largest Card (maximum)
- Finding a card (i.e. search)
- Sort your Cards

- Expectation: you should be able to repeat any of the above with any object!

## Monday (2/3/20)

**Agenda:**

- ArrayList Quiz on
**Friday 2/7/20** - Minesweeper demos
- BrickBreaker w/ ArrayLists demos
- AP CS Guide
- Review Unit 7: ArrayList's Essential Knowledge

- AP-expected algorithms:
- Min/Max
- Searching
- Linear search
- Binary search

- Sorting
- Selection sort
- Insertion sort