Design an algorithm to find the average miles


A salesperson leaves his hom every Monday and returns every Friday. He travels by company car. Each day on the road, the salesperson records the amount of gasoline put in the car. Given the starting odometer reading (before he leaves on Monday) and the ending odometer reading (after he returns on Friday), design an algorithm to find the average miles per gallon. Sample data: 68723, 71289, 15.75, 16.30, 10.95, 20.65, 30.00.

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Design an algorithm to find the average miles
Reference No:- TGS0119848

Expected delivery within 24 Hours