CSE 461 Lab 6 solved

$30.00

Category: Tags: , , , You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (6 votes)

In this laboratory you are going to finish the shell project.

  1. Here is the interface for the shell:
    class Shell: public Filesys
    {
    Public :
    Shell(string filename, int numberofblocks, int blocksize);
    int dir();// lists all files
    int add(string file);// add a new file using input from the keyboard
    int del(string file);// deletes the file
    int type(string file);//lists the contents of file
    int copy(string file1, string file2);//copies file1 to file2
    };
    

    All functions return 1 if successful and 0 otherwise.

  2. Work on the constructor.
  3. Work on the add function. Note the add function should have an end of input character.
  4. Work on the delete function.
  5. Work on the type function which displays the content of the file.
  6. Work on the copy function which copies the content of one file to another.

Add the ls function to the Filesys class and add the dir function to the Shell class. See the ls function for Filesys here. See the dir function for Shell here. See the main program here.