Clarification #2: In interactive mode, your program should continue to read input from the user in a loop, until the user terminates the program (i.e., with Control-C) or the standard input terminates (i.e., with Control-D).
Clarification #3: Remember that when there are two keywords, we utilize AND semantics, so both need to be present for a file to be returned in the results.
Clarification #4: When we have two keywords and you need to sort the results by the number of keyword occurrences, you should use the sum of the occurrences of each of the two keywords.
Would it be any way possible to extent the due date until next Sunday? I think a lot of us have a lot to accomplish this week and having another weekend to work on the project would be so fantastic.
We'll discuss this in class. I am worried that everybody will spend all their effort on the assignment and not get ready for the midterm which is on Monday, February 20th.
For the Sudoku assignment, would it be acceptable to implement the four radio buttons in each Sudoku cell instead as images as opposed to radio buttons? In this way, very small images with the numbers (1-4) can be used to reduce the amount of clutter in each cell. This is as opposed to having 4 radio buttons associated with 4 text fields. Then a large text field can be updated to reflect which button was clicked. By clicking on the same button image a second time, the text field could be cleared (resetting cell). I already took this approach before the assignment was released following the pattern of an online Sudoku game I found online. This might be more of a cosmetic question but I wanted to check.
Also, what is the purpose of having a "submit" button after each move? Shouldn't a single click of the radio button or image be enough, since we are providing them the option to go back?
Clarification #1: Please make sure to test your Perl programs in a unix environment, such as unixs1.cis.pitt.edu, since we will be testing them there.
ReplyDeleteClarification #2: In interactive mode, your program should continue to read input from the user in a loop, until the user terminates the program (i.e., with Control-C) or the standard input terminates (i.e., with Control-D).
ReplyDeleteIn batch mode, the program only runs once, without any user input (other than the command-line arguments).
DeleteClarification #3: Remember that when there are two keywords, we utilize AND semantics, so both need to be present for a file to be returned in the results.
ReplyDeleteClarification #4: When we have two keywords and you need to sort the results by the number of keyword occurrences, you should use the sum of the occurrences of each of the two keywords.
ReplyDeleteAfter everything is sorted, is the sum the count we display, or do we show the counts for the individual words next to the filenames?
DeleteSince you are sorting by the sum, it is simpler to show the sum only.
DeleteClarification #5: A word is delimited by either whitespace, punctuation marks, a hyphen, or double quotes.
ReplyDeleteFor simplicity, you can ignore the 's at the end of words (i.e., as in Agamemnon's) and have the original word count only.
DeleteI came across the following oddities in reading in the example text files:
Delete_ o_ p_ e_ n_ (Line 9 o perldoc.open.txt)
h:i:t:h:e:r:e (Line 39 of perldoc.split.txt)
How do you want us to handle these? Should we just throw them out?
_ and : can be seen as punctuation, and therefore used as world delimiters, which leaves only letters, which are considered stopped words.
DeleteWould it be any way possible to extent the due date until next Sunday? I think a lot of us have a lot to accomplish this week and having another weekend to work on the project would be so fantastic.
ReplyDeleteWe'll discuss this in class. I am worried that everybody will spend all their effort on the assignment and not get ready for the midterm which is on Monday, February 20th.
Delete*extend
ReplyDeleteClarification #6: Word matching should be case insensitive.
ReplyDeleteWould it be possible to get some sample outputs for some of the sample inputs, so that we know our programs are running as the instructions expect?
ReplyDeleteSorry, no. Testing your program against different scenarios is part of the assignment.
ReplyDeleteFor the Sudoku assignment, would it be acceptable to implement the four radio buttons in each Sudoku cell instead as images as opposed to radio buttons? In this way, very small images with the numbers (1-4) can be used to reduce the amount of clutter in each cell. This is as opposed to having 4 radio buttons associated with 4 text fields. Then a large text field can be updated to reflect which button was clicked. By clicking on the same button image a second time, the text field could be cleared (resetting cell). I already took this approach before the assignment was released following the pattern of an online Sudoku game I found online. This might be more of a cosmetic question but I wanted to check.
ReplyDeleteAlso, what is the purpose of having a "submit" button after each move? Shouldn't a single click of the radio button or image be enough, since we are providing them the option to go back?
To clarify, the large text field is displayed in each cell. So you have big numbers to cross-reference against each other when reviewing your board.
DeleteNope, you cannot do this, since it is using JavaScript and you are not supposed to use JavaScript for this assignment.
DeletePlease post all questions regarding assignment #2 to http://cs1520.blogspot.com/2012/02/clarifications-to-assignment-2.html
ReplyDelete