Difference between revisions of "IB Computer Science 1"
From WLCS
Line 10: | Line 10: | ||
** [https://introcs.cs.princeton.edu/java/11cheatsheet/ Java Cheatsheet (Princeton)] | ** [https://introcs.cs.princeton.edu/java/11cheatsheet/ Java Cheatsheet (Princeton)] | ||
** [http://interactivepython.org/runestone/static/java4python/index.html Java for Python Programmers] | ** [http://interactivepython.org/runestone/static/java4python/index.html Java for Python Programmers] | ||
− | ** [https://processing.org/reference/ Processing (Java) Reference) | + | ** [https://processing.org/reference/ Processing (Java) Reference)] |
* Java Methods/Functions | * Java Methods/Functions | ||
* Volunteers may paste old Python programs [https://drive.google.com/drive/folders/1Y_RKhGeK8snV4rc85zmZltlXFvsTvjWL?usp=sharing here] | * Volunteers may paste old Python programs [https://drive.google.com/drive/folders/1Y_RKhGeK8snV4rc85zmZltlXFvsTvjWL?usp=sharing here] |
Revision as of 06:04, 4 April 2019
Thursday (4/4/19)
Warmup:
- Join the new IB CS 1 repl.it for Java
- Complete the Java Syntax Practice 1 repl.it
Agenda:
- Demonstrate your Tic-Tac-Toe Java program
- Complete Canvas Java Practice Assignment/Quiz
- Java References
- Java Methods/Functions
- Volunteers may paste old Python programs here
- Convert and demo your (Processing) Functions: Emoji Assignment from Python to Java
- Convert and demo your (Processing) Functions: Hover Buttons from Python to Java
- Convert and demo your (Processing) Fancy Buttons program from Python to Java
- Create 4 buttons on the screen of some color of your choice (use the same color for all 4 buttons)
- Hovering over a button changes its color shade darker and increases the stroke weight around that particular button
- Pressing the button makes the color shade even darker (darker than hover)
- Releasing the button should return it to its original color. Depending on how you create your program, you may not need to define mouseReleased()
Tuesday (4/2/19)
Agenda:
- Demonstrate your re-implemented Item Collection / Robot game w/ lists!
- Installing Java software(s)
- Introduction to Java
- Comments
- Semicolons
- Curly brace/brackets
- Values, Types & Variables
- Declaring variables
- Function/method header
- if statement
- or -> ||
- and -> &&
- not -> !
- Practice Processing - Java
- Volunteers may paste old Python programs here
- Convert your Tic-Tac-Toe program from Python to Java