Question: python please You want to decide whether you should drive your car to work or take the train. You know the one-way distance from your
You want to decide whether you should drive your car to work or take the train. You know the one-way distance from your home to your pince of work, and the fuel efficiency of your car (in miles per gallon). You also know the one-way price of a train ticket, Assume that the cost of gas is 5 USD per gation and that the cost of car maintenance is 5 cents per mile--1 USD = 100 cents. Write an algorithm to decide which commute is cheaper TEST your algorithm and VERIFY that it is correct. Enter your answer by using as many cells as you need below Format your cells as you see fit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
