Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions

Question

=+2 Why did OBI create Centers of Excellence?

Answered: 1 week ago