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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started