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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!