| Category |
Points |
Min |
Max |
DrawTextScreen
-
Draws all required static graphic elements to text video screen in 80x50
text mode.
|
|
0 |
3 |
DrawAllBars
-
Draws the contents of Values array to screen
-
Works for any value of NumVals between 2 and 46
|
|
0 |
2 |
DrawBar
-
Draws a bar on screen at the proper location
-
All bars of length n are the same color
-
Works for any length bar > 1
|
|
0 |
2 |
Comparison
-
Draws pointers to screen indicating which two elements are being compared
-
Increments Comparisons
-
Prints the number of comparisons to the screen
|
|
0 |
2 |
Delay
-
Performs an empty loop SortDelay x 0xffff times
-
Called every time a comparison is made
-
If Stepping is nonzero, waits for a keypress
-
Sets Stepping to zero if ESC is pressed
|
|
0 |
3 |
Random
-
Generates good random numbers, without detectable patterns or biases
|
|
0 |
2 |
QuickSort
-
Performs a QuickSort using the recursive algorithm given in the
handout (+7)
-
Correctly calls Delay and Comparison after each comparison
of array elements (+1)
-
Works correctly for any value of NumVals from 1 to 46. (+4)
|
|
0 |
12 |
BubbleSort
-
Performs a BubbleSort using the algorithm given in the handout. (+4)
-
Correctly calls Delay and Comparison after each comparison
of array elements (+1)
-
Works correctly for any value of NumVals from 1 to 46. (+3)
|
|
0 |
8 |
DistributeValues
-
Uses Random to fill Values with NumVals values
-
Must work for any walue of NumVals
|
|
0 |
3 |
MouseControl
-
Waits for mouse button to be pressed and released (+2)
-
If a button was clicked, returns the value of that button in AX (+8)
|
|
0 |
10 |
Main
-
Calls correct routine depending on which button was clicked.
|
|
0 |
3 |
| Functionality SubTotal |
|
0 |
50 |
Comments (* percentage of code written)
-
Clear and precise line & procedure comments
(describes all major routines): -0
-
Sports Announcer comments (line-by-line): -1
-
Unclear comments: -1
-
Sparse comments: -3
|
|
-5 |
0 |
Technique & Style (* percentage of code written)
-
Compact and Efficient code: -0
-
Contains repeated code (lacks loops): -3
-
Makes poor use of registers and/or variables: -2
|
|
-5 |
0 |
I/O Specs & Modularity (* percentage of code written)
-
Violates specifications for given subroutines: -5 (all points)
-
Preserves valus of registers: -5 (all points)
|
|
-5 |
0 |
Penalty/Bonus
Before 5pm, Fri 10/24/97: +1 pt/weekday
After 5pm, Fri 10/24/97: -5 pts/weekday |
|
-50 |
5 |
| Total |
|
0 |
55 |