Objectives:
In this Unit you will work with Java in two contexts: Java Elements with Karel and Java and FTC Robot programming. First, you will work with Java in the context of a 2D world with "Karel the Dog". Karel represents an object that can move about the world and add/remove markers. While these are elemental scenarios, there are five key concepts of Java you will work with:
5 Key Concepts of Java/Programming
Java executes commands sequentially.
How to define a Method in Java
Use For Loops to repeat code when you know the length of the problem.
Use While Loops to repeat code when you do not know the length of the problem.
Conditionals like if and if/else allow the program to make decisions
Moving through a 2D grid and measuring/manipulating objects represents the core skills in computing and programming. You will use these five concepts through your entire programming career. Later in the course (Unit 3) we will see how moving through a 2D grid is used to manipulate media.
Java Programming with FTC Robots:
These lessons work with Java and programming the FTC Robot using the REV Control Hub. You will use the API we developed with Python to program the robot to complete tasks. You will all also implement functions in Java to encode longer series of actions. Finally, you will write code specific to solve the engineering challenges of the current FIRST Tech Challenge Game.