Menu

Make Decision Using Python3 Whether Travel 75 Commuter Needs Consider Whether Travelling T Q43902984

Make a decision using Python3 about whether to travel in I-75, acommuter needs to consider:

  1. Whether they are travelling at a time of day when tolls arebeing assessed.
  2. Whether tolls are being assessed in the direction in which theyare traveling.
  3. Whether they would have to pay tolls.
  4. Whether they are willing to pay tolls.

Your job is to write a program that processes all of thisinformation and makes the decision for a commuter. Here are therules for making that decision:

  • If it is morning rush-hour, then the HOT-lanes are in effecteast-bound. This means that a commuter can only take I-75east-bound if they have three or more people in the car or they’rewilling to pay the tolls.
  • If it’s evening rush-hour, then the HOT-lanes are in effectwest-bound. This means that a commuter can only take I-75west-bound if they have three or more people in the car or they’rewilling to pay the tolls.
  • At any other time of day or in any other direction, theHOT-lanes aren’t in effect, so the commuter is free to use I-75with no worries.

**Cannot use if statements**

ex.

Is it rush-hour right now? (morning/evening/no) morningIn which direction are you traveling? (east/west) eastHow many people are in your car? 2Are you willing to pay tolls? (yes/no) yesYou can take I-75: True

Expert Answer


Answer to Make a decision using Python3 about whether to travel in I-75, a commuter needs to consider: Whether they are travelling…

OR