Given that there are 100 cylinders (0-99) and the R/W head is on cylinder 15 moving towards higher numbered cylinders, calculate the total distance (# of cylinders) travelled by the R/W head using eac

1 answer

To calculate the total distance traveled by the R/W head, we need to consider the number of cylinders it passes by as it moves towards higher numbered cylinders.

If the R/W head is on cylinder 15 and moving towards higher numbered cylinders, it will pass through the following cylinders: 16, 17, 18, ..., 99.

The total number of cylinders passed is given by the difference between the highest numbered cylinder (99) and the current cylinder (15): 99 - 15 = 84 cylinders.

Therefore, the total distance traveled by the R/W head is 84 cylinders.