Find Jobs
Hire Freelancers

c++ program

$30-5000 USD

Completed
Posted over 22 years ago

$30-5000 USD

Paid on delivery
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
Project ID: 2831516

About the project

5 proposals
Remote project
Active 22 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$12 USD in 14 days
4.9 (19 reviews)
4.8
4.8
5 freelancers are bidding on average $20 USD for this job
User Avatar
See private message.
$25.50 USD in 14 days
4.6 (60 reviews)
4.5
4.5
User Avatar
See private message.
$34 USD in 14 days
4.5 (33 reviews)
4.2
4.2
User Avatar
See private message.
$17 USD in 14 days
4.8 (21 reviews)
3.2
3.2
User Avatar
See private message.
$11.05 USD in 14 days
4.2 (12 reviews)
2.1
2.1

About the client

Flag of UNITED STATES
United States
5.0
73
Member since Sep 7, 2001

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.