Difference between revisions of "IB Computer Science 1"

From WLCS
Line 1: Line 1:
 +
== Tuesday - Wednesday (3/21/17 - 3/22/17) ==
 +
'''Agenda:'''
 +
* Demo missing assignments
 +
** [https://docs.google.com/document/d/1RCVlD8xOl4mzuIm2kxQUtyccOOJa_6bBFVa3S57Sj_E/edit?usp=sharing Project: Simple Paint]
 +
** [https://docs.google.com/document/d/1xRSA_Ti8l5002jcAftcUtCTdujCojghzoTpUZwJvHQ4/edit?usp=sharing Animation: Bouncing Ball]
 +
** [https://docs.google.com/document/d/1NyUifJyiIxKupLXLLlbIcLB4SUCB_mLQs4GyhSaMSIw/edit?usp=sharing Project: Ping (1-player Pong)]
 +
** [https://docs.google.com/document/d/1g5aP7hBogJYCDSdURtG0SfG3CY-q7aLtYyGilZaQcSM/edit?usp=sharing Media: Loading & Playing Sounds]
 +
* Convert [https://docs.google.com/document/d/1VGe4BcieqEgXfBAW_kA6gDd5a243rIItHGfV9jXLRfo/edit?usp=sharing Project: Pong (Mouse vs Keyboard)] to Java AND use arrays so that there are multiple balls on the screen
 +
** You must change the gameplay!  If a ball passes a player's paddle, then give that person a point.  When there are no more balls on the screen, then the player with fewer points wins.
 +
** Note: If you do not have the Python code, then just get a copy from somebody who does
 +
** key is a char, so you need to use single quotes
 +
** hit() function must be edited to accept an input parameter i
 +
* Convert [https://docs.google.com/document/d/1wCZWJbwxWv6xqrbuQOKC8jgqdNdVUzSKE4L6UC-yX2s/edit?usp=sharing Animation: Gravity Ball with Mouse Launcher] to Java AND use arrays so that there are multiple balls (of different sizes) launched
 +
** Note: If you do not have the Python code, then just get a copy from somebody who does
 +
 
== Wednesday - Monday (3/15/17 - 3/20/17) ==
 
== Wednesday - Monday (3/15/17 - 3/20/17) ==
 
'''Agenda:'''
 
'''Agenda:'''

Revision as of 11:20, 21 March 2017

Tuesday - Wednesday (3/21/17 - 3/22/17)

Agenda:

Wednesday - Monday (3/15/17 - 3/20/17)

Agenda:

  • Demo missing assignments
  • Demo Java converted Media: Loading & Playing Sounds
  • Arrays in Java (~Lists)
    • Media:JavaArrays_Basic.ppt
    • Use of the [] brackets
    • Explicit declaration
    • Implicit declaration
      • Primitive types
      • Complex types
    • Multiple bouncing balls - create a version of the bouncing balls program in Java that uses arrays and has multiple balls moving on the screen
  • Convert Project: Pong (Mouse vs Keyboard) to Java AND use arrays so that there are multiple balls on the screen
    • You must change the gameplay! If a ball passes a player's paddle, then give that person a point. When there are no more balls on the screen, then the player with fewer points wins.
    • Note: If you do not have the Python code, then just get a copy from somebody who does
    • key is a char, so you need to use single quotes
    • hit() function must be edited to accept an input parameter i
  • Convert Animation: Gravity Ball with Mouse Launcher to Java AND use arrays so that there are multiple balls (of different sizes) launched
    • Note: If you do not have the Python code, then just get a copy from somebody who does

Tuesday (3/14/17)

  • Winter Storm Stella Snow Day

Friday - Monday (3/10/17 - 3/13/17)

Agenda:

Wednesday - Thursday (3/8/17 - 3/9/17)

Agenda:

Monday - Tuesday (3/6/17 - 3/7/17)

Agenda:

Wednesday - Friday (3/1/17 - 3/3/17)

Agenda:

  • Complete the File R/W (I/O) Exercises:
    1. Read a file with first and last names of people. Extract all their initials, such that first and last initials are combined per person (Paul Bui -> PB). Write/Output that list of initials to a file
    2. Write a program that generates a textfile with 10000 random numbers from 0-100
    3. Read a file with 10000 random numbers from 0 to 100. Print out the frequency of each of the numbers (Hint: Use a list to track the frequencies)

Archives