Question: Part 2: findName program (8 points) 1. Create a C++ program that takes a command line argument value (userid) and passes this argument to your

Part 2: findName program (8 points)

1. Create a C++ program that takes a command line argument value (userid) and passes this argument to your shell script from part I. HINT: system()

2. As in the previous assignment, modify your makefile to include a rule that creates a backup of the source files, makefile, and readme in an archive directory in your home directory structure. Submit an uncompressed tar file named $USER.findname.tar with your modified source code. (ie yourUserid.findname.tar)

Be sure to document your code in a README file.

In order to obtain credit for your project your submission must react properly to the following commands:

$ tar xvf $USER.findname.tar

$ make

$ ./findName someuserid

$

3. Your program will be graded based on its ability to execute the above commands and return one of 3 allowable outputs:

first lastname, or

some error message based on an incorrect number of command line arguments, or

the message stating that the user is not in CSCE215 this semester S

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!