Question: This program is written in C Function 1 definition: The function should accept two double types and return the difference of those values. Function 2

This program is written in C Function 1 definition: The function should accept two double types and return the difference of those values. Function 2 definition: The function should take the miles travelled and calculate the reimbursement amount based on the reimbursement rate of $0.35/ mile. Function 3 definition: The function should take the miles travelled and number of gallons of gas consumed and return the gas consumption of the vehicle in mile-per-gallon (mpg). Function 4 definition: The function should print the 3 inputs as follows: You traveled 305.4 miles. At $0.35 per mile, your reimbursement is $106.89. Your vehicle gas consumption is : 25.5 MPG
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
