- This event has passed.
9 AM – Intro To Java
May 16, 2021 @ 9:00 am - 10:00 am
- We continued with DriverSystem.
- We added menu so user can choose which driver to drive for your Trip
- Homework:
- 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.
- If implemented correctly, this is how the program should run
-
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: