Among other things, I'm a computer science instructor. I'm considering a programming exercise to simulate the dashboard mpg display found on many modern cars. It seems easy enough: monitor the fuel line and the odometer data, and at periodic intervals from the start display the elapsed mileage divided by the cumulative amount of fuel used.
- Correct so far?
If I figured it right, I have a related question: Is the interval of reporting based on time (say every five seconds) or by distance (say every 700 feet traveled)? The reason I'm asking is that the first option will be slightly more difficult to compute (though by no means impossible) than the first. I have no preference on which option to assign, but I'd like the simulation to be as close to reality as possible.