Jul-17-2019, 02:40 PM
(Jul-17-2019, 02:01 PM)ichabod801 Wrote: The main this I see is that you don't need a, b, or c. You could just as easily calculate with the original values:
total1 = distance / mpg total2 = ppg * total1I would maybe rename those variables for clarity:
gallons_used = distance / mpg total_cost = gallons_used * ppg
Thank you very much for your input. I am starting to somewhat grasp this stuff...lol