PLEASE HELP!!! A liter is 0.264179 gallons. Write a program that will read in th
ID: 3616685 • Letter: P
Question
PLEASE HELP!!!A liter is 0.264179 gallons. Write a program that will read in thenumber of liters of gasoline consumed by the user's car and thenumber of miles traveled by the car, and will then output thenumber of miles per gallon the car delivered. Your program shouldallow the user to repeat this calculation as often as the userwishes. Define 3 functions: one to take input from the user (usingpass by reference formal parameters),another to compute the numberof miles per gallon, and finally another to display the output.Your program should use a globally defined constant for the numberof liters per gallon. PLEASE HELP!!!
A liter is 0.264179 gallons. Write a program that will read in thenumber of liters of gasoline consumed by the user's car and thenumber of miles traveled by the car, and will then output thenumber of miles per gallon the car delivered. Your program shouldallow the user to repeat this calculation as often as the userwishes. Define 3 functions: one to take input from the user (usingpass by reference formal parameters),another to compute the numberof miles per gallon, and finally another to display the output.Your program should use a globally defined constant for the numberof liters per gallon.