Question: use C programing Functions 7. Write a program that contains two functions with the following prototypes: float convert mpg to_ipk(float miles_per gallon /* this function
use C programing


Functions 7. Write a program that contains two functions with the following prototypes: float convert mpg to_ipk(float miles_per gallon /* this function receives a float type argument called miles per gallon, and converts is to a new float variable called liters per km as follows: liters_per_km-1.0/ miles per gallon3.78541 /* gallons/liters */ * 0.621371 /* km/miles */) It then returns this newly calculated value float convert-1pk-to-mpg (float liters-per-) /* this function receives a float type argument called iters per_km, and converts is to a new float variable called miles_per_gallon as follows miles_per_gallon0/liters_per_km)0.264172 /liters/gallons1.60934 /*km/miles It then returns this newly calculated value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
