1. Engineering
  2. Computer Science
  3. 4 a write a c program that displays the following...

Question: 4 a write a c program that displays the following...

Question details

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:

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution