Answered You can hire a professional tutor to get the answer.
First, the program reads a line of input that specifies which files are eligible to be found. that can be specified in one of two ways:the letter d, followed by a space, followed (on the rest of the l
First, the program reads a line of input that specifies which files are eligible to be found. that can be specified in one of two ways:the letter d, followed by a space, followed (on the rest of the line) by the path to a directory. in this case, all of the files in that directory will be under consideration, but no subdirectories (and no files in those subdirectories) will be. (you can think of the letter d here as standing for "directory.")the letter r, followed by a space, followed (on the rest of the line) by the path to a directory. in this case, all of the files in that directory will be under consideration, along with all of the files in its subdirectories, all of the files in their subdirectories, and so on. (you can think of the letter r here as standing for "recursive.")if this line of input does not follow this format, or if the directory specified does not exist, print the word error on a line by itself and repeat reading this line of input; continue until the input is valid.