Sunday, November 08, 2009 12:07 AM,
A student writes: Dear Professor Patt I'm done with my program and am in the process of submitting it but there is one small case that worries me. Can we assume that you will ALWAYS input the name of a professor such as the given example below "Type a last name and press Enter:patt" instead of "Type a last name and press Enter: patt" As you can see, there is a major difference between the two cases (the space) and would affect the program if it was not written to deal with spaces as the first character of input. Is this possible case that will be tested on our programs? Thanks <<name withheld to protect the student is overly worrying>> Certainly, we could have put test cases where there are blank spaces before the name is entered, but I think you have enough to do without adding that little wrinkle. So, no, the first character typed in all our test cases will be the first letter of a name, and not a space Good luck finishing the program. Yale Patt