Show Bid Request
c++ program
Bid Request Id: 4946
|
|
|
Description:
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 full.Note 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 name.Note 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 name.you 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 sectors.you 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 tables.the directory table should be a 1- dimentional array ranging from 0 to 10.the 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
Special Conditions / Other:
11/18/01
Additional Files:
This bid request includes IMPORTANT additional attached files. Please download and read fully before bidding.
Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements.
We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation.
If you notice a violation please help out the site and report it. Thanks for your help.
|
|
Bidding/Comments:
|
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests. |
See all rejected bids (and all comments)
Name |
Bid Amount |
Date |
Coder Rating |
|
|
This bid was accepted by the buyer!
|
$15 (USD)
|
Nov 14, 2001 4:45:12 PM EDT
|
8.4
(Very Good)
|
|
|
I can make it at most in a hour. Thank you, Hardwired |
|
|
|
|
|