Question: Write a C program question 4 . c that prompts the user for the number of miles traveled ( as a float ) and the
Write a C program questionc that prompts the user for the number of miles
traveled as a float and the number of gallons of gasoline consumed.
Compute and display the milespergallon value, showing two places to the right of the decimal.
Given that one gallon is about liters, and one mile is about kilometers, convert the milepergallon value to a litersperkm value and display the result, showing one place to the right of the decimal. Use symbolic constants using const or #define for the two conversion factors.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
