W4118 Spring 2009 Non-Working Assignment Assignment Number: GroupID Number: VMware VM (hostname/vmware#/IP): We certify that: * The code submitted here compiles properly. * While we may have discussed the assignment with others, the code submitted is entirely our own group's work and no other student has edited it. Name of Group Member 1: _________________________ Name of Group Member 2: _________________________ Name of Group Member 3: _________________________ This is the cover sheet for a program that compiles properly, but has bugs. You should describe below what the bug is and how you tried to debug it. You do not need to document more than one bug. If you know of several bugs, choose whichever one you feel is most significant and describe that one. This section is the most important part of the entire assignment. In many cases, gathering this information will lead you to determine the nature of the bug. If you do not make a good faith effort to fill this section in, you will automatically be given a zero on the assignment. * Describe the conditions that cause the program to fail. For example, you may know that it always fails for a particular input or kind of input. Or you may know that it always fails when try it for the second time, or when a certain procedure gets called with a certain argument or when a particular global variable has a particular value. * When the program fails, what error message or other output does it generate? * What does it mean? If you don't know, ask someone. How do you think you're going to debug the program? * When the program fails, which of your procedures is it running? * In your program listing, put BOLD comments around the line that it is executing when it fails. Describe below how you know that this is the right line. If you can't determine which line then put BOLD comments around the different possible lines it could be executing. * Do you believe the bug is in this procedure? If not, do you think it's in a procedure that called it, or in some procedure that was executed previously and that either returned a bad value, or that placed a bad value in a variable someplace? Why? Note: we're not asking you to get this right. We're just asking you to give a plausible answer with a plausible justification, enough to show that you're developing sound reasoning processes for diagnosis. Further instructions to the student: * Check your program to make sure it is readable. You may wish to add some comments, change a variable name, or even restructure the code. This also often helps you find bugs in the code. * Print your code out and make sure that all the lines fit on the page without wrapping. * Print out your test inputs and transcripts of the program running the test inputs. Don't worry about wrapped lines here. * Include this file with the files you submit for your programming assignment. The file should be named "homework_nonwork.txt". * Describe below how each member of your group contributed to the assignment. Include a list of C functions and files that you modified or implemented and which group member was primarily responsible for doing each. All group members are expected to contribute in writing the code for each assignment. Member Contributions: