Skip to main content
Read a start time and a trip length, then use // and % to print the arrival time on a 24-hour clock, even past midnight. Open Lab 6 in the IP Lab Portal

What you will practice

  • Read and convert numeric input
  • Use // and % to carry minutes into hours
  • Wrap past midnight correctly

Before you start

Time

25 minutes

Where

IP Lab Portal

Module

Module 3: Operators, expressions, and console I/O

  • In the IP Lab Portal, open Lab 6 - Trip end time calculator.
  • In class, this lab comes right after the Lesson 7 recap slide in Module 3 core material.