Implement a portable file system

Assignment Help JAVA Programming
Reference no: EM13539574

Implement a Portable File System (PFS). Allocate a file. Move files from the Windows file system into your file. You should have your own directory structure, allocation table, etc. inside your file. Move files back out of your file to the Windows file system.

When your program is running it should somehow accept the following commands:

openPFSfile

putmyfile get myfile

rmmyfile?dir?putrmyfile "Remarks"

killPFSfile quit

Allocate a new 10 KByte "PFS" file if it does not already exist. If it does exist, begin using it for further commands.

Copy the Windows file "myfile" into your PFS file.

Extract file "myfile" from your PFS file and copy it to the current Windows directory.

Delete "myfile" from your PFS file. List the files in your PFS file.

Append remarks to the directory entry for myfile in your PFS file.

Delete the PFSfile from the Windows file system. Exit PFS.

You can provide those commands either through menus or through buttons on a?form (or both). If the user clicks a button in your application window, it might open up a dialog box to get a filename. Alternatively, you can just open up a text box and let the user key in the name of a file (or whatever other variable information you need.)

Limits:

Filenames are a max. of 20 bytes. The directory need handle only Name, Size, Time and Date. If the original PFS file fills up then you should create a new PFS "volume" with the same name but a different suffix - e.g., pfs.1, pfs.2, etc., each the same size as the first "volume". Your file system should use an allocation scheme where "disk blocks" are 256 bytes each.

Reference no: EM13539574

Questions Cloud

Find the momentum of the bullet after the rifle is fired : A rifle with a mass of 2.5 kg fires a bullet with a mass of 5.5 g (0.0055 kg). The bullet moves with a muzzle velocity of 330 m/s after the rifle is fired. What is the momentum of the bullet after the rifle is fired
Calculate the initial momentum of each player : A fullback with a mass of 75 kg and a velocity of 4.0 m/s due west collides head-on with a defensive back with a mass of 88 kg and a velocity of 5 m/s due east. What is the initial momentum of each player
Evaluate the change in momentum of the ball : A ball traveling with an initial momentum of 3.5 kg·m/s bounces off a wall and comes back in the opposite direction with a momentum of -3.5 kg·m/s. What is the change in momentum of the ball
Joker corporation owns and operates two facilities : Joker Corporation owns and operates two facilities that manufacture paper products
Implement a portable file system : Implement a Portable File System and allocate a file. Move files from the Windows file system into your file
What is the change in the golf balls momentum : An average force of 270 N acts for a time interval of 0.04 s on a golf ball. What is the change in the golf ball's momentum
Find fraction of yellow fish initial kinetic energy was lost : Big yellow fish swimming at 2.0m/s swallows little green fish at rest. Big yellow fish is 3 times as massive as little green fish. What fraction of big yellow fish's initial kinetic energy was lost in this collision
The common stock of alpha manufacture : The common stock of Alpha Manufacture has a beta of 1.25 and actual expected return of 10.50%. The risk-free rate of return is 2.0% and market return is 12.30%. what is the current price of the stock?
How much work does the person do lifting the barrel : A 60 kg barrel is lifted 2.0 m in the air using a pulley system with a mechanical advantage of 3. How much work does the person do lifting the barrel

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd