summaryrefslogtreecommitdiff
path: root/GradeBook_lib.tcl
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-03-11 12:48:04 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2011-03-11 12:48:04 -0500
commit767b9d5f263db37161e3f828eda4f02e70d8d783 (patch)
tree0bebbf4e338cc647d7b1f13e34b83af0cc30fdca /GradeBook_lib.tcl
parent47797af3d1a1db744e88f11fa088852db51d71e1 (diff)
downloadGradeBook-767b9d5f263db37161e3f828eda4f02e70d8d783.tar.gz
GradeBook-767b9d5f263db37161e3f828eda4f02e70d8d783.zip
added proc for grand weights for categories
Ignore-this: d6f77faff0f4e0be94f043027d2e420b darcs-hash:20110311174804-067c0-a156a049484dff19b64912d2cf8d93a8a76c4a94.gz
Diffstat (limited to 'GradeBook_lib.tcl')
-rwxr-xr-xGradeBook_lib.tcl11
1 files changed, 11 insertions, 0 deletions
diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl
index f32f746..073ac60 100755
--- a/GradeBook_lib.tcl
+++ b/GradeBook_lib.tcl
@@ -21,6 +21,17 @@ set grades_category [list \
# ########################## procs begin #################################
+proc getGradingWeights { } {
+ return [ list \
+ HomeWork .15 \
+ Quiz .10 \
+ LabReport .25 \
+ Participation .05 \
+ Midterm .20 \
+ Final .25 \
+ ]
+}
+
proc isCalculateTotalForCategorySet { category } {
switch $category {
"unset" {set flag false}