Wrote the function using variables for trip, car's miles per gallon and gas price all using prompts