Question: please help me (in C and Unix programming languages) 9- Write a C program Iab04e.c with the header file Iab04e.h that takes two strings from

 please help me (in C and Unix programming languages) 9- Write

please help me (in C and Unix programming languages)

9- Write a C program "Iab04e.c" with the header file "Iab04e.h" that takes two strings from command line that represent your first and last names. The program prints the values of the environment variable COURSE using "getenv". Also, the program concatenate the first and last names and print them like "My Name is: xxxx xxxx". Finally, terminate the program with exit status "20'" a. Include the source files changed in the report. b. Compile and link the source file to get the executable file "lab04e". Show the commands you have used and their results in your report From the terminal, add a new environment variable "COURSE-CS222", run the executable file and show the output in the report. c. 10- Write a C program "lab04f.c" with the header file "lab04f.h" which asks the user to input four strings for his first and last names, program name and course number. Then, it sets a new environment variable called COURSE with the input value from the user using "setenv". Also, it creates a child process that executes the program (already read from the user) and send the two input name strings as command line arguments and the environment variable Meanwhile, the parent process should reap the child process and print the child exit status if child had been normally terminated. Make sure you handle all the possible errors properly with clear error messages and proper wrappers. a. Include the source files changed in the report b. Compile and link the source file to get the executable file you have used and their results in your report Run the executable file where input program does not exist. Show the output in the report. Run the executable file where input program is "lab03. Show the output in the report. ab04e". Show the commands c. d

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!