For this homework, you will work in your revised teams, and submit only ONE set of files per team. Again, ALL members of the team should contribute to the homework. You can break up the assignment any way you want, however, ALL members of the team should understand how all of the programs work. As before, you should assign a coordinator for this homework, who will be responsible for seeing that everyone is completing their tasks on time and who should collect and turn in one set of files for the team. The job of coordinator should rotate among all members of the team with each homework assignment.
Again, for this homework, you should pay particular attention to the format (indenting) and documentation of your program; i.e. the comments in your code (describing the MEANING of your algorithm, not the code) and the comments describing the interface and operation of your functions. Style, as well as correctness, will be a component of the grade for this project.
You should write a simple (throw away) test driver to test your functions. Be sure you prompt the user (grader) of your test driver on what they should do to test your program. You should write this program in two files; driver1.c containing your test driver, and letters.c containing your functions. You should also have a file, letters.h, containing the prototypes and macros used in letters.c. I have provided a makefile for you in ~ee160/Homework/Hw3 which you can copy to your Hw3 directory. To compile this program, use the command:
make driver1Your executable will be called driver1.
You should think about your algorithm before beginning to code this function, and you might want to look at the program wds.c from lecture (and on wiliki in ~ee160/Code.lect/Chars/wds.c) for guidance. (That file is similar, but better, than the code in Chapter 4). The general algorithm for your program will be similar to the word counting program, but the details will vary. Implement your algorithm in the file spchk.c and use the functions in letters.c to test for the appropriate letters.
(Hint: You might want to write another function similar to delimitp() used in wds.c, but your code will be different from the delimitp() in the text. You can put any additional functions and/or macros you use in your letters.c and letters.h files).
I have provided you with a sample data file in ~ee160/Homework/Hw3/moolelo, but you should test your program first with your own data. The makefile in that directory can also be used to compile this program with the command:
make spchkYour executable will be called spchk.
If you are in Section 001, use:
grade -3s1,ee160 *.c *.hIf you are in Section 002 use:
grade -3s2,ee160 *.c *.hIf you are in Section 003 use:
grade -3s3,ee160 *.c *.hIf you are in Section 004 use:
grade -3s4,ee160 *.c *.hIf you are in Section 005 use:
grade -3s5,ee160 *.c *.hYou should verify that you turned in things successfully, which you can do with the command (which simply leaves the file names off from the previous command).
grade -3s1,ee160 OR grade -3s2,ee160 OR grade -3s3,ee160 OR grade -3s4,ee160 OR grade -3s5,ee160NOTE: after the files are prepared for grading, you will no longer be able to see your file listing using the above command.
In addition, as with hw 1 and 2, each member of the team should send me a confidential evaluation of the effort of each member of the team, INCLUDING YOURSELF in email using the ratings provided and in the format given in the ~ee160/eval file. Include a description in your comments of what parts of the programs where done by each member of the team, including yourself, and an assessment of how teamwork was used to complete this assignment. This evaluation WILL be used to adjust the individual homework grades for hw3 only. Your evaluation is due at the same time as the assignment. LATE EVALUATIONS WILL BE PENALIZED. If you do not email your eval on time, your homework grades will be adjusted based on your teammates' inputs and your voice will not be heard. In addition, your individual score will receive a 10% penalty for not turning in the eval.
As usual, should you have any questions just send mail or stop by and see me or the TA.