-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmpgr2.asp
109 lines (51 loc) · 1.67 KB
/
mpgr2.asp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<%@LANGUAGE=PerlScript %><!--#include file="ECE291.asp" --><%
my @Functions = (
"GetInput" => [
[0, 12],
"Inputs an entire line of user input",
"Ignores LF, clears character on BS unless at beginning of line",
],
"ProcessInput" => [
[0, 14],
"Ignores whitespace at the beginning of the command buffer",
"PUSHes a number, returns a valid op, or returns 0",
],
"Calculate" => [
[0, 20],
"Math operations yield correct answers (for non-negative numbers)",
],
"int GCD(m,n)" => [
[0, 15],
"<strong>Recursively</strong> calculates the GCD of two 16-bit numbers",
"Properly handles m or n being 0 (should return 1).",
],
"PrintRational" => [
[0, 14],
"Prints out simplified or improper fraction results",
"Only prints necessary components, never something like "3 0/1"",
],
);
my @Code = (
"Modularity" => [
0 => "Program should follow all specifications of assignment",
-3 => "Used hardcoded address rather than pointers",
],
"Technique and Style" => [
0 => "Program should be comprised of compact and efficient code",
-2 => "Awkward use of conditional jumps or loops",
-3 => "Extraneous use of registers and/or variables",
-3 => "Excessive coding",
],
"Comments" => [
0 => "Program should have clear and precise comments",
-2 => "No Function Headers",
-2 => "Excessive \"sportscaster\" commenting",
-3 => "Sparse and/or unclear comments",
],
"Penalty/Bonus" => [
5 => "Before _DEADLINE_: +1pts/weekday",
-75 => "After _DEADLINE_: -7pts/weekday up to 5 days, -75 after 5 days",
],
);
GradeSheet (\@Functions, \@Code);
%>