There seems to be a surprising amount of confusion over Script.txt, so let's fix that.
Script.txt is a plain text file which shows sample runs of your program. You can just copy the output, paste it all into Notepad, and save it as Script.txt. It's important because if I am testing your program while marking, and I encounter a bug or error, I can at least refer to your sample runs to see what you tried. If you entered some values and it worked, but I entered other values that made your program crash, you may get partial marks. Without the sample runs, I can only assume you didn't know what you were doing, and didn't test your program, and you will receive no marks.
A good Script.txt should cover one or more sample runs. You don't want to just enter random numbers for every run though, because that would be relatively pointless. Instead, when you do debugging, you often want to test edge cases. For example, I might do the following runs for Assignment 1:
- sample run with random valid (0-100) grades entered: I expect the program to run normally.
- sample run where -1 is entered immediately: I expect the program to tell me no grades were entered, stats are 0 or undefined.
- sample run where 0 and 100 are entered: I expect the program to run normally, because 0 and 100 are valid grades and the range should be 0-100 INCLUSIVE.
- sample run where numbers outside the range of 0-100 are entered, excluding -1: I expect the program to tell me to enter a new VALID input, while discarding the INVALID input without including it in the stats calculations.
If you already submitted your Script.txt, you can choose to resubmit it before the deadline. A Script.txt with just the first sample run above will suffice, but including the edge cases makes it more meaningful, and tells me you understood the problem well.
[chane@rsx1 ~/ScriptText]$
[chane@rsx1 ~/ScriptText]$ ls
Change.java
[chane@rsx1 ~/ScriptText]$ javac Change.java
[chane@rsx1 ~/ScriptText]$ java Change
Type price (0:100):
-1
[chane@rsx1 ~/ScriptText]$ java Change
Type price (0:100):
20
The change is:
8 dimes 0 pennies
Type price (0:100):
57
The change is:
4 dimes 3 pennies
Type price (0:100):
100
The change is:
0 dimes 0 pennies
Type price (0:100):
-1
[chane@rsx1 ~/ScriptText]$