[SOLVED] PROG1165 Assignment 5 -Recrusive File Walker

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon a7-recrusiveFileWalker-dzawby.zip (13.5 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

In computer science, recursion is described as a function or method that calls itself. It often involves a series of numbers or a linked list, and requires a terminal condition. Common examples of recursive algorithms can be found when calculating factorials or exponents, or when traversing a tree structure.

Minimum Requirements

Write a command line program (in Windows) to find names of files and directories that match a specified pattern.

  1. The program must be called walker.exe.
  2. The program must take two command line arguments – one for the starting directory, and the other as a regular expression describing the pattern that must be matched by the name of the directory or file.
  3. The output of the program should display all the directory and file names that match the search expression.
    1. If there is nothing that matched, you should state, “No file or directory found.”
    2. For each directory found, display the full directory path, each on a separate line.
    3. For each file found, display the full file path, each on a separate line.
  4. To walk the directory structure, a recursive algorithm must be used.

 

  • a7-recrusiveFileWalker-dzawby.zip