Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Part3.
Task #1. Write a C/C++ program (myprog 1.c or myprog1.cpp, and its executable named myprog1) 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 file 10, and so on. You should create link 1(a softlink to file20) after file20 is created.
Copy and paste your program listing (myprog1.c or myprogl.cpp) here
Copy and paste the run of your program 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:
Copy and paste the resulting program (myprog3.c or myprog3.cpp) 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).
Help me for that question please
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Multimedia Database Systems

Authors: V.S. Subrahmanian

1st Edition

1558604669, 978-1558604667

More Books

Students also viewed these Databases questions

Question

5. How would you describe your typical day at work?

Answered: 1 week ago

Question

7. What qualities do you see as necessary for your line of work?

Answered: 1 week ago