Difference between revisions of "IB Computer Science 1"

From WLCS
(Thursday (5/22/19))
Line 8: Line 8:
 
*## Generate two random numbers between 0 and the Card[] length
 
*## Generate two random numbers between 0 and the Card[] length
 
*## Swap the Card objects at the two random indices
 
*## Swap the Card objects at the two random indices
* Bad BlackJack assignment -
+
* Bad BlackJack assignment
 
*# Create a full deck of Card[]
 
*# Create a full deck of Card[]
 
*# Shuffle the deck
 
*# Shuffle the deck

Revision as of 23:20, 22 May 2019

Thursday (5/22/19)

Agenda:

  • Arrays of objects review
  • Shuffle Card assignment
    1. Use the toString() assignment main() test code as a guide
    2. Create a 52 Card[] array
    3. Using a loop, shuffle the Card[] array
      1. Generate two random numbers between 0 and the Card[] length
      2. Swap the Card objects at the two random indices
  • Bad BlackJack assignment
    1. Create a full deck of Card[]
    2. Shuffle the deck
    3. Create two different Card[] of size 2 each (one for computer and one for player)
    4. Deal 2 cards to the computer (store in a Card[])
    5. Display both of the computer's cards
    6. Display the total value of the computer's cards
    7. Deal 2 cards to the player
    8. Display both of the player's cards
    9. Display the total value of the player's cards
    10. Compare the totals and display who wins (computer or player)

Tuesday (5/21/19)

Agenda:

  • MTA Python Certification
  • Shuffle Card assignment
    1. Use the toString() assignment main() test code as a guide
    2. Create a 52 Card[] array
    3. Using a loop, shuffle the Card[] array
      1. Generate two random numbers between 0 and the Card[] length
      2. Swap the Card objects at the two random indices
  • Bad BlackJack assignment -
    1. Create a full deck of Card[]
    2. Shuffle the deck
    3. Create two different Card[] of size 2 each (one for computer and one for player)
    4. Deal 2 cards to the computer (store in a Card[])
    5. Display both of the computer's cards
    6. Display the total value of the computer's cards
    7. Deal 2 cards to the player
    8. Display both of the player's cards
    9. Display the total value of the player's cards
    10. Compare the totals and display who wins (computer or player)

Wednesday - Friday (5/15/19 - 5/17/19)

Agenda:

  • Poker Card class walk-through
  • Complete the Card class toString repl.it
  • Java methods
  • Complete the Java Methods repl.it assignment
  • MTA Python Certification option (voluntary)
    • Free, paid for by APS
    • Tuesday, May 21st during class period
    • ~45 mins for ~40 multiple-choice
  • MTA Python study materials:
    • URL: asd.onlineexpert.com
    • UserID: APSStudentIDnum@apsva.us
    • password: student
    • gmetrix.net (MTA practice tests)
    • Username: APSStudentIDnum@apsva.us
    • password: student

Monday (5/13/19)

Agenda:

  • Interim grades closing now - demo assignments
  • Complete the MTA Python interest survey in Canvas
  • MTA Python Certification option (voluntary)
    • Free, paid for by APS
    • Tuesday, May 21st during class period
    • ~45 mins for ~40 multiple-choice
  • MTA Python study materials:
    • URL: asd.onlineexpert.com
    • UserID: APSStudentIDnum@apsva.us
    • password: student
    • gmetrix.net (MTA practice tests)
    • Username: APSStudentIDnum@apsva.us
    • password: student

Tuesday - Thursday (5/7/19 - 5/9/19)

Agenda:

  • Missing demos
  • for loop review
  • Java arrays
  • Java arrays and for loops assignments in repl.it
    • Hint: You have already done some of these in Python before...
  • Complete the MTA Python interest for in Canvas
  • MTA Python Certification option (voluntary)
    • Free, paid for by APS
    • Tuesday, May 21st during class period
    • ~45 mins for ~40 multiple-choice
  • MTA Python study materials:
    • URL: asd.onlineexpert.com
    • UserID: APSStudentIDnum@apsva.us
    • password: student
    • gmetrix.net (MTA practice tests)
    • Username: APSStudentIDnum@apsva.us
    • password: student

Friday (5/3/19)

Agenda:

  • Complete demos:
    • Sound Board w/ Button objects
    • Either Dino Game or Flappy Bird w/ Sprite objects
  • Java for loops
    • Java for loops assignment(s) repl.it

Wednesday (5/1/19)

Agenda:

  • Complete Java OOP Vocab Quiz/Assignment
    • Open-book, open-note, closed-person
    • Unlimited attempts
    • You keep your highest score
  • Demonstrate:
    • Basic Sound Board w/ functions (no objects)
    • Sound Board w/ Button objects
    • Either Dino Game or Flappy Bird w/ Sprite objects

Archives