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

python please
python please You want to decide whether you should drive your car

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!