Expected text: (0 characters selected) |
Actual text: (0 characters selected) (paste your program's output below) |
Line numbers:
|
|
For Homework 5 (Guessing Game) and 6 (Bagels), since the programs use random numbers, you may not be able to reproduce the exact logs shown. They are posted mainly as examples to follow for formatting purposes. If you do want to match them exactly, you can "seed" your Random number generator by passing an int
to its constructor, which causes it to produce the same sequence of numbers every time. (This is good for testing, but not good for the final game, because it takes away the true randomness.)
Any comparison lines that begin with a <
are those that occur in the expected output but are not found in the same place in your output. Lines that begin with a >
are those that occur in your output but are not found in the same place in the expected output.
Many assignments have some sort of creative output. In the expected output, this will be signified by text such as, << your verse goes here >>
. You are not supposed to literally print this output from your program; you are supposed to print your own custom message in its place. If this tool shows your custom message as being unmatched, this is expected.
Assignments that use random numbers may be impossible to match exactly in output unless you use a "seed" to your random number generator. See the assignment's FAQ page for more details about how to do this.
NOTE: Achieving "No differences found" on this page does not guarantee that you will earn any particular grade on an assignment.