Question: Part 3 . Task # 1 . Write a C / C + + program ( myprog l . c or myprog l . cpp

Part3.
Task #1. Write a C/C++ program (myprog l.c or myprog l.cpp, and its executable named myprog 1) to create a few directories as shown below in your current directory (dirl, dir2), a few files (filel in current directory, file 10 in dirl, file20 in dir2, and a symbolic-link link 1(to link to file20).
You are going to create the files and directories in depth-first order (and left to right). That is, dirl will be created first, then file10, and so on. You should create link1(a softlink to file20) after file20 is created.
Copy and paste your program listing (myprogl.c or myprog l.cpp) here Task #2. Write c/c++ program (myprog2.c or myprog2.cpp, and its executable named myprog2), listing all the files and
directories created in Task#1(you may use 1s or find command here),(1) to output a C/C++ program (myprog3.c or
myprog3.cpp, and its executable named myprog3) which will delete all the files and directories when it is run, (2) to
compile and run this program (myprog3.c or myprog3.cpp) to delete all the files and directories, and (3) to show all the
deletion done (by listing all the files and directories after the deletion - by showing that there is no files and directories).
All of these will be done by running myprog2 program (via system call).
Copy and paste your program listing (myprog2.c or myprog2.cpp) here
cs3377 Section
Name:
netID:
Conv and naste the resulting nrooram (mvnroo 3. c or mvnros 3.cnn) here
Copy and paste the output of the program (myprog2.c or myprog2.cpp) run.
Submit two files (to be attached for your upload): (1) this word document with your answer and (2) a zip file (including
each shell script and its log of the run).
 Part3. Task #1. Write a C/C++ program (myprog l.c or myprog

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!