c++ program the objective of this assignment is to give you an apportunity to simulate some of the operation (function) normaly found in microcomputer file system for maintaining its directory and file allocation tables
## Deliverables
c++ program the objective of this assignment is to give you an apportunity to simulate some of the operation (function) normaly found in microcomputer file system for maintaining its directory and file allocation tables (1) create :used to create a file by allocating 1 sector to it command:c fn where c=create , fn=file name (a sigle lower case letter a ...z)you may assume that when a file is created ,it is a new and unique file which does not exist in the directory table you may also assume that both tables are never [login to view URL] that the first entry in the directory table is used to store the file name. (2) add: used to add 1 sector to a file. command:a fn where a=add,fn=file [login to view URL] that the first sector available in the file allocation table is allocated .you may assume that the file already exist in the directory table (3) delete :used to delete a file and reclaim all sectors allocated to it command:d fn where d = delete ,fn file [login to view URL] may assume that the file already exist in the directory table (4) reclaim: used to reclaim a certain a mount of sectors for a file. command:r fn # where r = reclaim,fn = file name, # =number of sectors to be reclaimed >note that LIFO is used to reclaim the [login to view URL] may assume that 1 <= # <= the number of sectors allocated to the file you may also assume that the file already exist in the directory table (5) print : used to print ( to the screen ) all the information for the two tables command : p where p = print .Note that all file names and the sectors allocated to them should be shown you should use 2 arrays to implement the 2 [login to view URL] directory table should be a 1- dimentional array ranging from 0 to [login to view URL] array is defined in terms of structure having 2 fields (file name and first sector allocated).the file allocation table should also be a 1- dimentional array ranging from 0 to 50 .the array contains integers representing sectors allocated .all of the sectors are available to files.see....... program starts running Please enter a command : c a Please enter a command :a a Please enter a command :c b Please enter a command :c c Please enter a command :a a Please enter a command :a c Please enter a command :r a 1 Please enter a command :p file a :sector 0 , 1 file b: sector 2 file c : sector 3 ,5 Please enter a command : q for quit
## Deadline information
11/18/01