Question: implement the code in java for the HighTraffic and MediumTraffic classes. MediumTraffic Class: / / Represents a medium traffic condition. Implements TrafficState for medium /
implement the code in java for the HighTraffic and MediumTraffic classes.
MediumTraffic Class:
Represents a medium traffic condition. Implements TrafficState for medium travel conditions. Your multiplier for the distance is Your message for the user in the getDirection is to suggests using a mix of main roads and side streets.
HighTraffic Class
Represents a high traffic condition. Implements TrafficState for slow travel conditions. Your multiplier for the distance is Your message for the user in the getDirection is to suggests using side streets to avoid heavy traffic on main roads. TODO Create the HighTraffic Class
Driver:
Modify the Switch conditions and the TODO sections to accommodate the new states you have created
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
