Lab 5: Distances, Speeds, and Times in Java
Intro
You’ll work in this lab with your assigned partner. Help each other get up and running with IntelliJ and Java (Lab 4: Same Story, More Syntax). The two of you will work as a team to solve problems. At any time, one of you will be the Head and the other will be the Hands. The Head does the thinking and the Hands does the typing. Hands type only what the Head tells them to, but you’re free to discuss any issues that pop up. We’ll have you switch off during the lab to make sure each of you get practice problem solving, dealing with syntax, and getting finger exercises on the keyboard.
1 Lab 1 Redux
Our goal for today’s lab is to re-implement the first lab (Lab 1: Simple Data Definitions with Class) in Java. If you’ve already completed lab 1 you’re in luck–the translation from class/0 should be straightforward.
You should translate tests to Java comments; we’ll introduce a check-expect style testing mechanism next week.