Question: Create a text file called inmpg.txt in your project. It should contain four gallon amounts and the starting and ending miles on your odometer. This


Create a text file called "inmpg.txt" in your project. It should contain four gallon amounts and the starting and ending miles on your odometer. This file should contain no text, only numeric values separated by blanks EXAMPLE 11.7 14.3 12.2 8.5 67308.0 68750.5 22.5 15 19.6 10 95300 95670 100 90 20 35.5 7000 7500 Compile and run the following program. Note that the output generated by this program will be written out to a text file called outmpg.tr. "The file will be created automatically by your program. #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
