Find Jobs
Hire Freelancers

Java program

$10-30 USD

Në vazhdim
Postuar over 7 years ago

$10-30 USD

Paguhet në dorëzim
Description of the 3335FS: public class FileInfo{ String filename; //name of the file being stored int block1; //index number in the blocks_info array containing starting data of the file } //Declaration of the File System public static final int MAX_SIZE = 256; FileInfo [] files = new FileInfo[MAX_SIZE] //index i is null if file is deleted int [] blocks_info = new int [MAX_SIZE] //block# for the next block, 0 if available, -1 for EOF, -2 for bad block String [] blocks = new String [MAX_SIZE] //Actual block data //Explanation FileInfo: Represents each file stores in the FS. block1 contains the index of the blocks_info array where the data of this file is stored files array: Initialized to all null values. When a file is deleted, its corresponding FileInfo object is set to null. When a new file is allocated, its object gets stored at the first available (null) index in the array blocks_info array: Contains the indices info for the stored data of each file. Every blocks_info[i] can have 4 types of values: int value between 0-255: If a file spans more than one file, will contain the array index for the next block 0: if the block is available -1: if this is the last block for a file -2: a bad block, do not use blocks array: Actual data of the files. Each blocks[i] can hold a maximum string size of 256. blocks[i] is null if no data stored here. Project Details: Implement the 3335FS explained above in java. Your main menu should have the following options: 1. Store a file -- asks the user for a filename on your harddrive and stores it in the 3335FS. Should print an error message if the file does not exist on the hard drive. 2. Delete a file -- asks the user for a filename stored in your 3335FS and deletes it. Should print an error message if the file does not exist in the 3335FS. 3. Print 3335FS to file -- saves the whole file system in "[login to view URL]" on your hard drive. The data should be properly formatted for readability. 4. Exit
ID e Projektit: 11703766

Rreth projektit

7 propozime
Projekt në distancë
Aktive 8 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
I dhënë për:
Avatari i Përdoruesit
$49 USD në 1 ditë
3,8 (3 përshtypje)
2,8
2,8
7 profesionistët e pavarur ofrojnë mesatarisht $35 USD oferta për këtë punë
Avatari i Përdoruesit
A proposal has not yet been provided
$55 USD në 1 ditë
4,9 (63 përshtypje)
6,2
6,2
Avatari i Përdoruesit
I am a Java developer and can help you for this task.
$30 USD në 2 ditë
4,9 (4 përshtypje)
3,9
3,9
Avatari i Përdoruesit
Hi, I am OCPJP certified java developer having 6 yr of experience. I have designed db for large ERP projects (AFS based). I can do this task easily. Regards, Haresh Amin
$30 USD në 2 ditë
5,0 (7 përshtypje)
3,9
3,9
Avatari i Përdoruesit
hi I can do this program I have already made notepad program in Java I can do this hope to hear back from you
$15 USD në 1 ditë
5,0 (1 review)
1,0
1,0

Rreth klientit

Flamuri i UNITED STATES
Austin, United States
5,0
1
Mënyra e pagesës u verifikua
Anëtar që nga dhj 9, 2014

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.