Here are some sample data files for assignment 3, and (hopefully) correct output for each:
-
d1.txt: The file from the assignment page.
Output:
Type A observations: 3 Type B observations: 2 Total: 261.59
-
d2.txt: Only type A observations, no errors
Output:
Type A observations: 5 Type B observations: 0 Total: 132.69
-
d3.txt: Only type B observations, no errors
Output:
Type A observations: 0 Type B observations: 4 Total: 1637.18
-
d4.txt: Mixed type A and B observations, no errors
Output:
Type A observations: 4 Type B observations: 3 Total: 1393.88
-
d5.txt: Type A and B data, with several errors.
Output:
There was bad data in the file. Type A observations: 1 Type B observations: 1 Total: 626.09