0% found this document useful (0 votes)
2 views

Assignment 2024 SP

Uploaded by

Raj Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Assignment 2024 SP

Uploaded by

Raj Singh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

BACHELOR OF INFORMATION TECHNOLOGY (HONS)

Programming Report
January 2024

Module: Systems Programming


Lecturer: Nirdosh Bista

Instructions:
Start Date: - 2024-03-05
Due Date: - 2024-03-20

Weighting: 10% of the total assessment of the module


The total mark is 60.
Learning outcome:
 to use a scripting language to design a program in a Linux environment.

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

Criteria Marks Details Obtained


Marks
Script Structure and 5 Clear structure, logical flow, and comprehensive
Comments comments throughout the script.
User Interaction and 10 Includes user-friendly prompts, error messages, and
Input Validation input validation.
Implementation of 15 Correct and efficient implementation of all required
File Operations file management operations.
Error Handling 5 Appropriate handling of potential errors (e.g., trying
to delete a non-existent file/directory).
Proper use of 10 Use of functions properly.
Functions
Creativity and 5 Implementation of additional features or creative
Additional Features approaches to the problem beyond the basic
requirements.
Documentation 10 As per documentation requirement.

You might also like