Skip to main content
Store race distances in well-named variables and a constant, convert them both ways, and round the answers. Open Lab 3 in the IP Lab Portal

What you will practice

  • Name variables that explain their contents
  • Convert miles to kilometers and back
  • Print rounded results with labels

Before you start

Time

20 minutes

Where

IP Lab Portal

Module

Module 2: Literals and variables

  • In the IP Lab Portal, open Lab 3 - Miles and kilometers converter.
  • In class, this lab comes right after the Lesson 7 recap slide in Module 2 core material.