Abstraction - a simplified representation of something more complex. Abstractions allow you to hide details to help you manage complexity, focus on relevant concepts, and reason about problems at a higher level.
Lesson 16 - FUnctions with parameters
LESSON MATERIALS (YOU CAN ACCESS ONLY VIA @BERGEN.ORG ACCOUNT)
Objectives
Students will be able to:
abstract code even further, by making it possible to “pass” values into a function from the code that calls it.
Abstraction: is the process of taking away or removing characteristics from something in order to reduce it to a set of essential characteristics. Through the process of abstraction, a programmer hides all but the relevant data about an object in order to reduce complexity and increase efficiency.
Lesson 15 - collision detection
LESSON MATERIALS (YOU CAN ACCESS ONLY VIA @BERGEN.ORG ACCOUNT)
Objectives
Students will be able to:
detect collision between two rectangles
see the connection that similar algorithms can be applied to 2D games
detect collision between sprites in our game so we can trigger some actions. (removing sprites, updating score, etc.)
Object: A collection of properties, and a property is an association between a name (or key) and a value. The way of storing group of data in key-value pairs.
Lesson 10 - FUNCTIONS 2 - BOUNCING BALL
LESSON MATERIALS (YOU CAN ACCESS ONLY VIA @BERGEN.ORG ACCOUNT)
Objectives
Students will be able to:
understand that functions are the parts of a program which separates them out into modular pieces.
analyze how a program produces different results based on varying circumstances via conditionals.
Variable: A placeholder of information that can be changed at run-time. A piece of computer memory holding some value.
Data Type: All values in a programming language have a "type" - such as a Number, Boolean, or String - that dictates how the computer will interpret it. For example 7+5 is interpreted differently from "7"+"5"
Boolean: A data type that has one of two possible values, intended to represent the two truth values of logic and Boolean algebra.
Concatenation: is the operation of joining two strings together. The term"concatenation" literally means to merge two things together. name = (firstname + lastname); console.log(“Score: ”+ points);
String: A string is a data type used in programming, such as an integer and floating point unit, but is used to represent text rather than numbers.
Lesson 05 - MOUSE INTERACTION
LESSON MATERIALS (YOU CAN ACCESS ONLY VIA @BERGEN.ORG ACCOUNT)
Objectives
Students will be able to:
control the flow of the program by running setup() and draw() functions.
Computer Program: A list of instructions that tell a computer what to do.
High-level language: A programming language that enables a programmer to write programs that are more or less independent of a particular type of computer. Such languages are considered high-level because they are closer to human languages and further from machine languages.
Low-level language: used to write programs that relate to the specific architecture and hardware of a particular type of computer. They are closer to the native language of a computer (binary), making them harder for programmers to understand.
Assembly language: A low-level programming language designed for a specific type of processor.
Machine language: The lowest-level programming language. It is the only language a computer is capable of understanding (binary).
Compiler: A program that processes statements written in a particular programming language (High) and turns them into machine language(Low).
Lesson 01 - ALGORITHMS
LESSON MATERIALS (YOU CAN ACCESS ONLY VIA @BERGEN.ORG ACCOUNT)