Question: 4. a. Write a C program that displays the following prompts Enter the miles driven Enter the gallons of gas used: After each prompt is

4. a. Write a C program that displays the following prompts Enter the miles driven Enter the gallons of gas used: After each prompt is displayed, your program should use a scanf) function call to accept data from the keyboard for the displayed prompt. After the gallons of gas used has been entered, your program should calculate and display miles per gallon obtained. This value should be included in an appropriate message and calculated using the equation miles per gallon - miles I gallons used. Verify your program using the following test data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
