Staging · for review, not public

Week 1 · Tuesday, Jan 5 · 1.2

Steps, then Java

An algorithm is a set of steps in a set order, and a Java program is an algorithm the compiler turns into bytecode that the JVM runs.

Minutes for each part of a 90-minute class.

Today we will

  • An algorithm is a list of steps that solves a problem or finishes a task.
  • The same algorithm can be written as numbered steps, drawn as a diagram, or written in Java.
  • Order matters: the steps run one after another, top to bottom, and swapping two steps can change the result.
  • We trace steps with boxes: each step works out the right side, then stores it on the left.
  • Java code you write is source code. The compiler checks it and turns it into bytecode.
  • The Java Virtual Machine (JVM) runs the bytecode, so the same program runs on any computer that has a JVM.

Terms

algorithmsequencingsource codecompilerbytecodeJava Virtual Machine (JVM)

AP topics 1.1 · Learning objectives 1.1.A, 1.1.B · Skills 1.A, 3.A, 4.A

0–10 min

Do Now

Warm up the moment you sit down. One code when you finish.

Open the Do Now
10–35 min

Demonstration

Chromebooks open. Follow along on the Follow along jobs in We Do / You Do while Mr. Muggivan works the examples.

10–75 min

We Do / You Do

Follow along, then Part A (with help), Part B (on your own) and stretch. One code for the whole block.

Open We Do / You Do
75–90 min

Exit Ticket

A few exam-style items to show what you learned today. One code.

Opens only in the last 15 minutes of class on this day.

Missed class? The Do Now and We Do / You Do stay open. Do them any time and submit your codes.