CSI6203 Scripting Languages: Software Based Solution Assignment 3 Answer

pages Pages: 4word Words: 890

Question :

Scripting Languages: Assignment 3 Software Based Solution

Unit Learning Outcomes aligned with this assessment

UO 2: Design software solutions to perform desired tasks.

UO 3: Develop and deploy scripted software solutions using industry standard scripting languages to meet functional requirements.

Course Learning Outcomes aligned with this assessment

CLO 2: Apply comprehensive knowledge of concepts, principles, and techniques in the cyber security discipline to both theoretical as well as practical situations.

CLO 3: Apply creative thinking to identify and solve cyber security challenges.


  • Your script will be marked on a standard Linux installation using the bash shell.
  • You must only use bash shell script as covered in lectures and workshops.
  • Refrain from using non-core commands, tools and utilities in your bash shell scripts. Non-standard bash commands, tools and utilities will not be downloaded and installed by your tutor.
  • Ensure each script you write is fully self-contained and is not configured to be dependent on external files, libraries or resources to run.
  • Do not use the trap command in any of your scripts.
  • Each script you submit must contain your full name and student number at the beginning as code comments.


  • This is an individual assignment only and must not be completed in collaboration with other students
  • You may not work with others, acquire code from others, or provide code to others
  • Further, you may not post any of the assignment tasks below to a code-development community of any kind seeking solutions or advice
  • Nor may you copy and paste or otherwise reproduce code provided by external sources and use it as part of your own solutions
  • Where it is found that any of these restrictions have been ignored, academic misconduct proceedings may be initiated
  • Please read the checklist below and watch the associated video BEFORE submitting your assignment

Task: Part 1, Writing the Script (30 marks)

Having completed your two main portfolio activities, you have now been tasked with creating a script to build on that knowledge. Your script will automatically retrieve information from the ECU website, specifically in the Media Gallery page pertaining to the School of Science’s Cyber security courses.

Inside the gallery you will see a selection of thumbnail images with an associated image number;

 thumbnail images

Task Brief

Your task is to write a script solution that displays the following functionalityreliability and quality


Solution Functionality

Present the user with the following menu options, with the functionality to which option refers being facilitated by your script solution:

  1. Download a specific thumbnail, i.e. 1566 (by the last 4 digits of the file name)
  2. Download images in a range (by the last 4 digits of the file name), as an example, starting range of 1558 and ending range of 1569
  3. Download a specified number of images, as an example, if the user enters the numeral 5, 5 random images in the specified range of DSC01533 to DSC02042 will be downloaded
  4. Download ALL thumbnails
  5. Clean up ALL files
  6. Exit Program

When the file or files are downloaded the output (assuming no errors) should report to screen the following;

Downloading [image number], with the file name [filename and extension], with a file size of [file size and metric]

As an example, if I selected to download DSC01566 the output would look like this;

Downloading DSC01566, with the file name DSC01566.jpg, with a file size of

45.34 KB….File Download Complete

For multiple files being downloaded, each file will be printed on its own line

Downloading DSC01533, with the file name DSC01533.jpg, with a file size of

44.32 KB….File Download Complete

Downloading DSC01536, with the file name DSC01536.jpg, with a file size of

48.39 KB….File Download Complete

Downloading DSC01543, with the file name DSC01543.jpg, with a file size of

48.28 KB….File Download Complete

When the user selects menu item 5) Clean up ALL files, all directories and files created by your script are to be deleted from the system, leaving nothing behind. This means that your tutor’s working directory will be returned to its original state in preparation for the next student to be marked. Please note: this function will be carefully perused before being executed, and if appears that it may delete anything other than the directory and files your script created, it will not be run and no marks for this section will be awarded.

Solution Reliability

  • Each of the command line functions operates as specified
  • User input errors are trapped and addressed so incorrect/invalid values are not accepted and processed by the script’s code
  • The user is required to specify a directory into which all images are to be downloaded, and if that directory does not exist, it is to be created
  • All files downloaded are to be successfully stored in the directory nominated by the user
  • If a file to be downloaded is already present in the nominated directory, the user is to be given the choice to overwrite it or skip that file completely
  • File download messages are to show the correct size metric matching the files size in KB
  • Where multiple files are downloaded, the total size of all those files is also to be printed to the terminal in KB or MB when the download process is complete
  • Once a download process has been completed, the user is to always be returned to the menu; with the script terminating only when the user chooses option 6) Exit Program.

Solution Quality

  • Display any errors to screen (such as 
Show More

Answer :

For solution, connect with online professionals.