You will write a program to determine the gas mileage use on atrip, given the mi
ID: 3608333 • Letter: Y
Question
You will write a program to determine the gas mileage use on atrip, given the miles driven and the gallons used. Theprogram should then calculate and print out the miles pergallon. Lastly, the program will print a comment based on theMPG results.
Specification
double milesPerGallon(int m, intg);
mpg >= 30 Tree hugging is fun.
30 > mpg >= 22 You've seen InconvenientTruth.
22 > mpg >= 15 What's Global Warming??
15 > mpg I think you just ran over a squirrel with your Hummer.