American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

9 AM – Intro To Java

May 16, 2021 @ 9:00 am - 10:00 am

  1. We continued with DriverSystem.
    1. We added menu so user can choose which driver to drive for your Trip
  2. Homework:
    1. After user choose the driver, we want the user enter the distance for the trip and the time where they want to make the trip. After the system got the distance, call the driver class calculateTripTime(..) and pass the distance that the user enter to figure out how long the trip will take.
    2. If implemented correctly, this is how the program should run
    3. Please select your driver for your trip: 
      - Alex Kwan
      - Brian Tran
      - Bill Han
      - Gamas Chang
      Enter the name of the driver: Alex Kwan
      How far is your trip: 10
      What time you want to go (Enter 0 to 23): 6
      With Alex Kwan, it will take 5.0 minute to make the trip of 10 miles
      
      Please select your driver for your trip: 
      - Alex Kwan
      - Brian Tran
      - Bill Han
      - Gamas Chang
      Enter the name of the driver: Gamas Chang
      How far is your trip: 20
      What time you want to go (Enter 0 to 23): 6
      With Gamas Chang, it will take 20.0 minute to make the trip of 20 miles
      
      Please select your driver for your trip: 
      - Alex Kwan
      - Brian Tran
      - Bill Han
      - Gamas Chang
      Enter the name of the driver:

Details

Date:
May 16, 2021
Time:
9:00 am - 10:00 am
Event Categories:
,