Design and write a Monte Carlo simulation written inC/C++ of the four disk scheduling algorithms shown in Figure 11.7using uniform random numbers. Seek time is to be measured in numberof tracks crossed.
Simulation parameters: 1) Number of I/O requests (5-50),2) Track of each I/O request (1-199) without duplicates within asimulation.
Run at least 100 simulations for each Number of I/Orequests. Calculate the average over all simulations of the averageseek lengths for each algorithm (demonstrated in Table11.2).
Using an application such as Excel. plot the averageseek length of each algorithm for each simulation on the samechart. The chart should start with the smallest Number
OR
OR