Question: Question 2 : Write a program that prompts the user for a path and displays the directory structure, files and sizes of them on the

Question 2:
Write a program that prompts the user for a path and displays the directory structure, files and sizes of them on the console as follows:
+-- filel 202 bytes
+-- file 2500 bytes
+-- begin-dirl
+-- file3200 bytes
+-- file4100 bytes
+-- begin-dir2
+-- file 5230 bytes
+-- file 6270 bytes
+-- end-dir 2500 bytes
+-- end-dir11000 bytes
+-- file 7350 bytes
+-- begin-dir3
+-- file7400 bytes
+-- file 8400 bytes
+--end-dir 3800 bytes
Number of Files: 8
Number of Directories: 3
Total Size: 2852 bytes
 Question 2: Write a program that prompts the user for 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 Databases Questions!