Example Report
Hi everybody,
I've copied an example of the program test report for assignment 10 below. Some of you had trouble getting your programs to work well. Please have a look at the output of this assignment. Please also let me know if you need an example implementation.
I decided to list out the the point distribution of this assignment here because it contains quite several parts. They are not going to be exactly the same as what you will see in your score report point deduction section. For example, I won't take off all of the points if only some part of a method is broken.
-
40% for the MinHeap
class.
20% for the add
method using a loop.
20% for the remove
method using recursion.
-
10% for the PriorityQueue
class.
You need at least three methods in this class: add
, poll
, and toString
. They should follow the signatures defined in the Queue
interface.
-
10% for the Process
class.
5% for the compareTo
method
5% for the other necessary accessors and mutators.
-
40% for the final output.
12% will be given to the main structure: reading a file, handling exceptions, and adding and polling in the correct order.
5% will be given for reporting the levels of the heap traversed.
5% will be given if your program correctly re-inserts the tasks that are partially finished in the current round of execution back into the priority queue.
5% will be given for reporting the current time as the program executes.
5% will be given if your program reports when a task is done and whether it is late.
5% will be given if your program correctly treats the scheduled run-time as a time in the furture rather than a duration.
3% will be given if your program reported the elapsed time of the adding and polling operations.
If you submitted your assignment 10, you will soon receive an email from me with your report and score. If you haven't received the email by tomorrow, let me know. Also let me know if you have any questions regarding your score.
Cheers!
Jade
Here is your score for Assignment 10.
Score: TDB%
Let me know if you have any questions regarding your score. And let me know if you want a copy of an example implementation for the assignment.
Regards,
Jade
Grading Guildelines
Test Results
The following files was used during the tests:
-
commands1.txt
schedule lunch 1300 30
schedule work 7200 2300
schedule homework 2359 300
run 2400
-
commands2.txt
schedule work 3000 2300
schedule homework 2359 300
run 2400
schedule email 2800 1000
run 3500
run 3700
-
commands3.txt
schedule sleep 80 80
schedule breakfast 90 5
run 85
schedule email 100 20
run 100
schedule dinner 190 10
schedule lunch 130 5
schedule exercise 180 20
schedule class 150 12
schedule study 120 10
schedule studyAgain 240 30
run 230
run 240
-
empty.txt
-
case-sensitive.txt
SCHEDULE lunch 1300 30
Schedule work 7200 2300
schedule homework 2359 300
RUN 1200
Run 2400
run 3600
-
blank-lines.txt
schedule lunch 1300 30
schedule work 7200 2300
schedule homework 2359 300
run 2400
-
single-line.txt
schedule lunch 1300 30 schedule work 7200 2300 run 2400
-
reverse-time.txt
schedule lunch 1300 30
schedule work 7200 2300
schedule homework 2359 300
run 1200
run 1200
run 600
run 300
-
bad-command.txt
schedule lunch 1300 30
schedule work 7200 2300
bad homework 2359 300
run 2400
-
bad-time1.txt
schedule lunch 1300 30
schedule work bad 2300
schedule homework 2359 300
run 2400
-
bad-time2.txt
schedule lunch 1300 30
schedule work -1000 2300
schedule homework 2359 300
run 2400
-
bad-duration1.txt
schedule lunch 1300 30
schedule work 7200 bad
schedule homework 2359 300
run 2400
-
bad-duration2.txt
schedule lunch 1300 30
schedule work 7200 -2300
schedule homework 2359 300
run 2400
-
bad-duration3.txt
schedule lunch 1300 30
schedule work 7200 2300
schedule homework 2359 300
run bad
-
bad-duration4.txt
schedule lunch 1300 30
schedule work 7200 2300
schedule homework 2359 300
run -2400
-
bad-length.txt
schedule lunch 1300
Levels traversed: 0
Time consumed (ns): 6984
0: adding lunch with deadline 1300 and duration 30
Levels traversed: 0
Time consumed (ns): 14248
0: adding work with deadline 7200 and duration 2300
Levels traversed: 0
Time consumed (ns): 3632
0: adding homework with deadline 2359 and duration 300
Levels traversed: 0
Time consumed (ns): 10057
0: performing lunch with deadline 1300 and duration 30
30: done performing lunch
Levels traversed: 0
Time consumed (ns): 3631
30: performing homework with deadline 2359 and duration 300
330: done performing homework
Levels traversed: 0
Time consumed (ns): 3073
330: performing work with deadline 7200 and duration 2300
Levels traversed: 0
Time consumed (ns): 2514
330: adding work with deadline 7200 and duration 230
Levels traversed: 0
Time consumed (ns): 5867
0: adding work with deadline 3000 and duration 2300
Levels traversed: 1
Time consumed (ns): 17600
0: adding homework with deadline 2359 and duration 300
Levels traversed: 0
Time consumed (ns): 6705
0: performing homework with deadline 2359 and duration 300
300: done performing homework
Levels traversed: 0
Time consumed (ns): 3073
300: performing work with deadline 3000 and duration 2300
Levels traversed: 0
Time consumed (ns): 2515
300: adding work with deadline 3000 and duration 200
Levels traversed: 1
Time consumed (ns): 4190
2400: adding email with deadline 2800 and duration 1000
Levels traversed: 0
Time consumed (ns): 3632
2400: performing email with deadline 2800 and duration 1000
3400: done performing email (late)
Levels traversed: 0
Time consumed (ns): 3352
3400: performing work with deadline 3000 and duration 200
Levels traversed: 0
Time consumed (ns): 2794
3400: adding work with deadline 3000 and duration 100
Levels traversed: 0
Time consumed (ns): 3353
3500: performing work with deadline 3000 and duration 100
3600: done performing work (late)
Levels traversed: 0
Time consumed (ns): 5308
0: adding sleep with deadline 80 and duration 80
Levels traversed: 0
Time consumed (ns): 13969
0: adding breakfast with deadline 90 and duration 5
Levels traversed: 0
Time consumed (ns): 9498
0: performing sleep with deadline 80 and duration 80
80: done performing sleep
Levels traversed: 0
Time consumed (ns): 3352
80: performing breakfast with deadline 90 and duration 5
85: done performing breakfast
Levels traversed: 0
Time consumed (ns): 2794
85: adding email with deadline 100 and duration 20
Levels traversed: 0
Time consumed (ns): 3352
85: performing email with deadline 100 and duration 20
Levels traversed: 0
Time consumed (ns): 2794
85: adding email with deadline 100 and duration 5
Levels traversed: 0
Time consumed (ns): 3632
100: adding dinner with deadline 190 and duration 10
Levels traversed: 0
Time consumed (ns): 3352
100: adding lunch with deadline 130 and duration 5
Levels traversed: 1
Time consumed (ns): 7263
100: adding exercise with deadline 180 and duration 20
Levels traversed: 1
Time consumed (ns): 5028
100: adding class with deadline 150 and duration 12
Levels traversed: 1
Time consumed (ns): 5028
100: adding study with deadline 120 and duration 10
Levels traversed: 0
Time consumed (ns): 3352
100: adding studyAgain with deadline 240 and duration 30
Levels traversed: 2
Time consumed (ns): 7263
100: performing email with deadline 100 and duration 5
105: done performing email (late)
Levels traversed: 1
Time consumed (ns): 6146
105: performing study with deadline 120 and duration 10
115: done performing study
Levels traversed: 1
Time consumed (ns): 6984
115: performing lunch with deadline 130 and duration 5
120: done performing lunch
Levels traversed: 1
Time consumed (ns): 6146
120: performing class with deadline 150 and duration 12
132: done performing class
Levels traversed: 1
Time consumed (ns): 5866
132: performing exercise with deadline 180 and duration 20
152: done performing exercise
Levels traversed: 0
Time consumed (ns): 3353
152: performing dinner with deadline 190 and duration 10
162: done performing dinner
Levels traversed: 0
Time consumed (ns): 3353
162: performing studyAgain with deadline 240 and duration 30
192: done performing studyAgain
Levels traversed: 0
Time consumed (ns): 5867
0: adding lunch with deadline 1300 and duration 30
Levels traversed: 0
Time consumed (ns): 13968
0: adding work with deadline 7200 and duration 2300
Levels traversed: 0
Time consumed (ns): 3631
0: adding homework with deadline 2359 and duration 300
Levels traversed: 0
Time consumed (ns): 10058
0: performing lunch with deadline 1300 and duration 30
30: done performing lunch
Levels traversed: 0
Time consumed (ns): 3632
30: performing homework with deadline 2359 and duration 300
330: done performing homework
Levels traversed: 0
Time consumed (ns): 3632
330: performing work with deadline 7200 and duration 2300
Levels traversed: 0
Time consumed (ns): 2793
330: adding work with deadline 7200 and duration 1430
Levels traversed: 0
Time consumed (ns): 3352
1200: performing work with deadline 7200 and duration 1430
Levels traversed: 0
Time consumed (ns): 2514
1200: adding work with deadline 7200 and duration 230
Levels traversed: 0
Time consumed (ns): 3353
2400: performing work with deadline 7200 and duration 230
2630: done performing work
Levels traversed: 0
Time consumed (ns): 5588
0: adding lunch with deadline 1300 and duration 30
Levels traversed: 0
Time consumed (ns): 14247
0: adding work with deadline 7200 and duration 2300
Levels traversed: 0
Time consumed (ns): 3631
0: adding homework with deadline 2359 and duration 300
Levels traversed: 0
Time consumed (ns): 10336
0: performing lunch with deadline 1300 and duration 30
30: done performing lunch
Levels traversed: 0
Time consumed (ns): 3632
30: performing homework with deadline 2359 and duration 300
330: done performing homework
Levels traversed: 0
Time consumed (ns): 3352
330: performing work with deadline 7200 and duration 2300
Levels traversed: 0
Time consumed (ns): 2235
330: adding work with deadline 7200 and duration 230
Levels traversed: 0
Time consumed (ns): 5307
0: adding lunch with deadline 1300 and duration 30
Levels traversed: 0
Time consumed (ns): 13968
0: adding work with deadline 7200 and duration 2300
Levels traversed: 0
Time consumed (ns): 8940
0: performing lunch with deadline 1300 and duration 30
30: done performing lunch
Levels traversed: 0
Time consumed (ns): 3631
30: performing work with deadline 7200 and duration 2300
2330: done performing work
Levels traversed: 0
Time consumed (ns): 5867
0: adding lunch with deadline 1300 and duration 30
Levels traversed: 0
Time consumed (ns): 13969
0: adding work with deadline 7200 and duration 2300
Levels traversed: 0
Time consumed (ns): 3352
0: adding homework with deadline 2359 and duration 300
Levels traversed: 0
Time consumed (ns): 10616
0: performing lunch with deadline 1300 and duration 30
30: done performing lunch
Levels traversed: 0
Time consumed (ns): 3352
30: performing homework with deadline 2359 and duration 300
330: done performing homework
Levels traversed: 0
Time consumed (ns): 3073
330: performing work with deadline 7200 and duration 2300
Levels traversed: 0
Time consumed (ns): 2794
330: adding work with deadline 7200 and duration 1430
Run time is in the past: 600
Levels traversed: 0
Time consumed (ns): 5867
0: adding lunch with deadline 1300 and duration 30
Levels traversed: 0
Time consumed (ns): 13968
0: adding work with deadline 7200 and duration 2300
Unknown command in file: bad
Entries should start with 'schedule' or 'run'.
Levels traversed: 0
Time consumed (ns): 6425
0: adding lunch with deadline 1300 and duration 30
Invalid integer value.
Levels traversed: 0
Time consumed (ns): 5866
0: adding lunch with deadline 1300 and duration 30
Unexpected negative value.
Levels traversed: 0
Time consumed (ns): 6425
0: adding lunch with deadline 1300 and duration 30
Invalid integer value.
Levels traversed: 0
Time consumed (ns): 5866
0: adding lunch with deadline 1300 and duration 30
Unexpected negative value.
Levels traversed: 0
Time consumed (ns): 6146
0: adding lunch with deadline 1300 and duration 30
Levels traversed: 0
Time consumed (ns): 13969
0: adding work with deadline 7200 and duration 2300
Levels traversed: 0
Time consumed (ns): 3073
0: adding homework with deadline 2359 and duration 300
Invalid integer value.
Levels traversed: 0
Time consumed (ns): 6146
0: adding lunch with deadline 1300 and duration 30
Levels traversed: 0
Time consumed (ns): 14806
0: adding work with deadline 7200 and duration 2300
Levels traversed: 0
Time consumed (ns): 3352
0: adding homework with deadline 2359 and duration 300
Unexpected negative value.
Unexpected end of file.
Usage: java ChengJade10 <path>
badpath.txt (The system cannot find the file specified)
Usage: java ChengJade10 <path>