Examlex

Solved

Suppose That a Bus Company Is Deciding Where to Locate

question 5

Essay

Suppose that a bus company is deciding where to locate its central hub. There are 6 possible destinations for the buses. Suppose that the centre of town will be used as the reference for describing the possible destinations. A is located 5 miles South and 3 miles West. B is located 3 miles North and 2 miles East. C is located 1 mile South and 5 miles East. D is located 2 miles North and 3 miles West. E is located exactly in the centre of town. F is located 10 miles North and 5 miles East. Assume that traffic to each destination will be equal. Where should the hub go so that travel time is minimized?


Definitions:

Ftell()

A function in many programming languages that returns the current position in a file.

Random Access Files

Files that allow data to be read or written in any order, as opposed to sequential access where data is read in order.

Offset Value

Refers to the distance or difference in location, often used in computing to specify the position of a data item within a data structure.

Fwrite()

A function in many programming languages used for writing data to a file.

Related Questions