Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site hp-pcd.UUCP Path: utzoo!linus!philabs!seismo!hao!hplabs!hp-pcd!hpfcla!ajs From: ajs@hpfcla.UUCP Newsgroups: net.auto Subject: Gas mileage program, anyone? - (nf) Message-ID: <3541@hp-pcd.UUCP> Date: Fri, 30-Dec-83 03:45:43 EST Article-I.D.: hp-pcd.3541 Posted: Fri Dec 30 03:45:43 1983 Date-Received: Sun, 1-Jan-84 02:21:02 EST Sender: notes_gateway@hp-pcd.UUCP Organization: Hewlett-Packard, Fort Collins, CO Lines: 33 #N:hpfcla:13200001:000:1025 hpfcla!ajs Dec 26 15:33:00 1983 Would anyone like me to post a gas mileage "compiler" program? It takes an input file containing lines of the form: YYMMDD odometer decigallons pennies station For example: 831223 52751 78 950 EX It prints a nice little report, including annual and grand totals: NUM DATE DAYS MILEAG MILES GALS COST PL MPG MPD CPG CPD === ====== ==== ====== ===== ===== ====== == ==== === ==== ===== 0 770627 0 0 1 770629 2 129 129 8.5 6.50 ?? 15.2 65 0.76 3.25 . . . 222 831223 20 52751 230 7.8 9.50 TE 29.5 12 1.22 0.48 373 4369 146.9 175.84 29.7 12 1.20 0.47 2370 52751 1664.7 1652.33 31.7 22 0.99 0.70 If you'd like me to write a manual entry and post that and the source (215 lines, 5Kb), please mail me. Alan Silverstein, Hewlett-Packard Fort Collins Systems Division, Colorado ucbvax!hplabs!hpfcla!ajs, 303-226-3800 x3053, N 40 31'31" W 105 00'43"