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

  What are mobile oss you have personally used explain the

write a 200- to 300-word short-answer response to the following bull what are mobile oss you have personally used?

  Create system in java using agile approach

You are a software manager in company which designs critical control software for aircraft. Create system in Java using agile approach with a user involved in the development team.

  Java program that will prompt the user to input a file

Write a Java program that will prompt the user to input a file (document) in order to count the frequency of each word. This program will display the frequency of each word sorted alphabetically or by frequency (depending on the preference of the use..

  Build the gui layout of the game

Build the Build the GUI layout of the game in java.

  Q1write a program called linearstringsearchjava that looks

q1.write a program called linearstringsearch.java that looks for a target string value in an array of string values.

  Evaluate the rtas resource requirements

Design and implement a set of classes and interfaces and use them to evaluate the RTA's resource requirements.

  Write an if statement that uses the flag as the condition

Write an if statement that uses the flag as the condition. Remember that the flag is a Boolean variable, therefore is true or false. It does not have to be compared to anything.

  What is the paintcomponent method how is it used in java

q1. what is the paintcomponent method? how is it used in java graphics? how does a program intentionally cause the

  Find the solution of all these java question

find the solution of all these java question

  Class sorter which contains methods for selection sort

Write a class Sorter which contains methods for selection sort, insertion sort and bubble sort (start with the code below). Then create a client class which asks user to enter ten numbers using arrays. Then the program asks user which sorting algo..

  Write a java program in a netbeans project that reads a

write a java program in a netbeans project that reads a text file containing the names and addresses of several people

  Write down a java application which inputs three integers

write a java application that inputs three integers from the user and displays the sum average product smallest and

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