| about | help | code help+videos | done | prefs |
It is illegal to drive both slower and faster than the flow of traffic if the speed would cause a hazard to other traffic. Complete the isHazard method which returns true if the parameter, mySpeed, is more than 10 miles above or below the second parameter, trafficSpeed or false otherwise.isHazard(43, 45) → false isHazard(35, 45) → false isHazard(34.9, 45) → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100 Post-solution available
Copyright Nick Parlante 2017 - privacy