Assignment 2024 SP
Assignment 2024 SP
Programming Report
January 2024
Instructions:
Start Date: - 2024-03-05
Due Date: - 2024-03-20
Instructions:
This is an individual assignment.
Read the scenario given below and answer all the questions.
Produce and submit documentation comprising the description of the assignment, a screenshot
of scripts of each question, and its corresponding outputs, and submit the actual scripts file in
your Microsoft Assignments Portal.
The work you submit should be original and plagiarism will be penalized.
Not submitting the assignment by the deadline will lead to failure of the module.
Assignment
Create a bash script that performs basic file management operations. The script should allow the user
to:
1. Create a directory
2. List the contents of a directory
3. Create an empty file
4. Write content to a file – The content is your full name.
5. Display the content of a file
6. Delete a file
7. Delete a directory
The script should interactively prompt the user to choose an operation, perform the requested task,
and then return to the main menu until the user chooses to exit.
System Requirements:
1. Use clear and user-friendly prompts.
2. Validate user input where applicable (e.g., check if a file/directory exists before trying to
delete).
3. Include comments in your script explaining the purpose of each section or operation.
4. Make sure the script exits cleanly when the user chooses to exit.
5. Submission: Submit your script as a .sh file and a document.
Ensure your script is well-tested and free of syntax errors. Marks will be deducted for errors, poor
error handling, and lack of comments.
Documentation Requirements:
The documentation should contain the following components:
1. A cover page.
2. Table of Content
3. Introduction to each scenario
4. A clear screenshot of all Shell scripts / must include comments in your scripts
5. Screenshot of outputs.
6. Conclusion: what you understand from the assignment.
7. References
8. Marking Scheme (Given in the assignment)
Marking Scheme
Assignment 10%
Student Name ID # Program Signature