Objectives:
In this unit 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.