Directions for mailing
the program files of Homework 5Please follow these steps before you mail your files -
Suppose your account id on SNOWHITE for cis307 is c307104.
I assume that you have the following files comprising your program -
Original name New name
------------- ----------------
hmw_main.c 104hmw_main.c
rand_proc.c 104rand_proc.c
id_list.h 104id_list.h
If your program uses additional header files please rename them by prefixing the original name with the last three digits of your account id on snowhite.
Please make sure that all compiler directives and statements that use the original names of the files are modified to refer to the new names.
For example, the #include directive in 104rand_proc.c,
#include "id_list.h"
should be modified as
#include "104id_list.h".
Also the execlp function invocations in 104hmw_main.c,
execlp("rand_proc", ..)
should be modified to
execlp("104rand_proc", ..).
I first compile 104rand_proc.c and have the output placed in
104rand_proc, invoking cc with the -o option :
cc 104rand_proc.c -o 104rand_proc
Then I compile 104hmw_main.c into a.out and execute a.out.
I would like to reiterate that all statements that refer to the old names of the program files should be modified to refer to their new names.
Please note that the prefix 104 in each name comes from the snowhite account id c307104. Do not forget to substitute the last 3 digits of YOUR OWN snowhite account id for 104 in the above names.
Please make sure you use the COMPLETE address (not just c307100 or c307200) so that the messages would be sent to my account on snowhite server.
Correctness of results - 60 points Correctness of logic - 20 points Program organization - 20 points ---------- 100 points
amandala@astro.ocis.temple.edu