Monitor Disc Head Using Java
Pls help me to write a code for this appli. . I am new to java and have to do this program soon.
Your program should follow the following algorithm:
a) You are given a starting point for the disk head. (100)
b) You will read a set of values representing the position of the disk head and place it in a table representing the trace of disk head movement during the retrieving process.
c) For each disk head position read, calculate the number of tracks traversed
d) At the end of your program, you should calculate the average tracks seek length which is the sum of the total number of traversed tracks.
e) Your program should create an output file “output_lab3.txt” containing a table with 2 columns:
a. First column: the value of the head position read
b. Second column: The corresponding value of the number of traversed tracks.
c. The last row of the table should have the average value of the number of traversed tracks.
The average of tracks traversed is: