You want to decide whether you should drive


You want to decide whether you should drive you car to work or take the train. you know the one way distance from your home to your place of work, and the fuel efficiency of your car(in miles per gallon). you also know the one way price of a train ticket. you assume the cost of gas at $4 per gallon, and car maintenance at 5 cents per mile. write an algorithm to decide which commute is cheaper? 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: You want to decide whether you should drive
Reference No:- TGS0100023

Expected delivery within 24 Hours