Question: Project Description Project Description Create a C + + 1 7 1 console ? 2 application that shows disk usage ( based on the UNIX

Project Description Project Description
Create a C++171 console ?2 application that shows disk usage (based on the UNIX command). du (abbreviated from disk usage) is inspired by a standard Unix program used to estimate file space usage on a file system. Your application will parse files from a given directory on a hard drive.
Purpose:
To display allocation space (not absolute file space) for each file and directory contained in a given pathname
Usage:
du takes at least a single argument, specifying a pathname
If no pathname is provided, the current directory is used du reports:
Pathnames and the sum of the clusters allocated for each directory
The sum of clusters for the given root directory
Switches:
Switches provide input options for additional functionality
"-" is used before a single letter switch or a collection of single letter switches
"--" is used before a word switch
Program Interfaces
du [-skhznrb][--he1p][--version][--b7ock-size=dddd][folder]*
Where:
\table[[-s,Display only the final summary of each root folder],[-k,Set the cluster size to 1024],[-h,\table[[Make human readable. Output is in KiB,MiB,GiB,TiB3 rounded to either one decimal place if],[less than 10 or zero decimal places otherwise. A zero value has neither a decimal place or a],[unit.(see demo).]]],[-z,Sort rows by size],[-n,Sort rows by folder name],[-r,Display rows in reverse order],[-b,Output in bytes, not clusters],[-help,Display the help listing],[-version,Display the version number only in the form d.d.d],[-block-size=dddd,Set the cluster size to the specified value >0.],[[folder]*,\table[[If no folder is provided the current working directory is used. Otherwise, the specified folder is],[where the scan begins.]]]]
Input Rules:
Cannot use -b and -h switches together
-k and -block-size are incompatible
-z and -n switches are incompatible
No switch may be duplicated
There cannot be unknown switches
Grading Criteria Submission Requirements
Submit entire Visual Studio project directory to Fanshawe Online
a. Delete all debug and release directories. ?1
b. Submit in a .ZIP, 7 z archive file.
Create a C++171 console ?2 application that shows disk usage (based on the UNIX command). du (abbreviated from disk usage) is inspired by a standard Unix program used to estimate file space usage on a file system. Your application will parse files from a given directory on a hard drive.
Purpose:
To display allocation space (not absolute file space) for each file and directory contained in a given pathname
Usage:
du takes at least a single argument, specifying a pathname
If no pathname is provided, the current directory is used du reports:
Pathnames and the sum of the clusters allocated for each directory
The sum of clusters for the given root directory
Switches:
Switches provide input options for additional functionality
"-" is used before a single letter switch or a collection of single letter switches
"--" is used before a word switch
Program Interfaces
du [-skhznrb][--he1p][--version][--b7ock-size=dddd][folder]*
Where:
\table[[-s,Display only the final summary of each root folder],[-k,Set the cluster size to 1024],[-h,\table[[Make human readable. Output is in KiB,MiB,GiB,TiB3 rounded to either one decimal place if],[less than 10 or zero decimal places otherwise. A zero value has neither a decimal place or a],[unit.(see demo).]]],[-z,Sort rows by size],[-n,Sort rows by folder name],[-r,Display rows in reverse order],[-b,Output in bytes, not clusters],[-help,Display the help listing],[-version,Display the version number only in the form d.d.d],[-block-size=dddd,Set the cluster size to the specified value >0.],[[folder]*,\table[[If no folder is provided the current working directory is used. Otherwise, the specified folder is],[where the scan begins.]]]]
Input Rules:
Cannot use -b and -h switches together
-k and -block-size are incompatible
-z and -n switches are incompatible
No switch may be duplicated
There cannot be unknown switches
Grading Criteria
Project Description Project Description Create a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!