Place the calculations inside the functions
correct and re-submit
Assignment:
A liter is 0.264179 gallons. Write a program that will read in the number of liters of gasoline consumed by the user's car and the number of of miles traveled by the car, and will then output the number of miles per gallon the car gets. Your program should allow the user to repeat this calculation using a loop. Your program should use a globally defined constant for the number of liters per gallon.
You may
1. Write two functions in addition to main(). Write one function that calculates the gallons from the liters and another function that calculates the miles per gallon from the miles and the gallons.
OR
2. Write one function, in addition to main(), that calculates the miles per gallon from the miles and the liters. It would convert the liters to gallons internally.