Ram trying to figure out if he should drive the car or take the bus to work. Ram aware of the one-way distance between h
Posted: Sat Feb 19, 2022 3:21 pm
Ram trying to figure out if he should drive the car or take the bus to work. Ram aware of the one-way distance between his home and to the workplace, as well as his vehicle's (car) fuel efficiency (in miles per gallon). Ram also know how much a bus ticket costs one way. Ram assumes a $10 per gallon gas price and a 12 cents per mile car maintenance expense. Write a Java Program to decide which commute is cheaper for travelling of Ram.