Write a program that implements the following disk-schedulingalgorithms:
a. FCFS
b. SSTF
c. SCAN
d. C-SCAN
e. LOOK
Your program will service a disk with 10,000 cylinders numbered0 to 9,999. The program will generate a random series of 1,000cylinders requests and service them according to each of thealgorithms listed above. The program will be passed the initialposition of the disk head (as a parameter on the command line), andreport the total amount of head movement required by eachalgorithm. Your program should show the result in a table.
You may use any programming language and add comments to yourcode.
Solution
/*
Program written in c language
*/
#include<stdio.h>
#include <stdlib.h>
int difference(int x,int
OR
OR