« All Events
9 AM – Intro To Java – Gamas
October 22, 2022 @ 9:00 am - 10:00 am
Today We Did
- We continued discussing Driver System practice test.
Homework
- Continue finishing Driver System practice test. Please finish the booking feature.
- After user answers “Enter what time you want to leave (0 – 24): “. Take the input from shell and convert to Integer. After you convert to Integer, check if it is rush hour. If it is between 5 to 10 then it is rushHour. If it is then call the driver.getTripTime method and pass distance and true for rushHour parameter. The driver.getTripTime() will return the trip time in float which is distance/driver.getSpeed().