Annotation of capa/capa51/pProj/capautils.config, revision 1.1.1.1

1.1       albertel    1: # ================= capautils settings =======
                      2: #
                      3: # When computing the scores for each class, up to the set number
                      4: # specified in this section that the score report is generated
                      5: # The program will look up from set1.db, set2.db and so on 
                      6: # until the setX.db file which is not exist or it reaches the set number 
                      7: # specified in this section.
                      8: # Place a number of 99 will effectively makes the program 
                      9: # to include all scores from  all setX.db files upto set 99.
                     10: 
                     11: homework_scores_limit_set = 12
                     12: exam_scores_limit_set     = 7
                     13: quiz_scores_limit_set     = 16
                     14: supp_scores_limit_set     = 14
                     15: others_scores_limit_set   = 0
                     16: 
                     17: # The file to store all scores of students from the classl file 
                     18: #  It is used to send out e-mail
                     19: 
                     20: master_scores_file = "/usr/users/teacher/CAPA45/phy183f7/scores/scores.all"
                     21: 
                     22: # The template file for e-mail
                     23: 
                     24: email_template_file        = "/usr/users/teacher/CAPA45/phy183f7/scores/email.template"
                     25: 
                     26: 
                     27: # pre-defined variable names that can be used in email.template
                     28: #
                     29: # Declare a variable name with ':=' 
                     30: #  when assigning a value to a variable, use '='
                     31: 
                     32: # This variable is used to store the total scores 
                     33: #    calculated from all setX.db's in the regular class
                     34: # It is later refered in the file 'email.template' as $HWtotal_scp
                     35: 
                     36: var_homework_total_score   := HWtotal_scp
                     37: 
                     38: # This variable is used to represent the total possible scores 
                     39: #    that a student could receive from all setX.db's in the regular class
                     40: # It is later refered in the file 'email.template' as $HWtotal_max_scp
                     41: 
                     42: var_homework_total_max     := HWtotal_max_scp
                     43: 
                     44: 
                     45: # This variable is used to represent the total scores 
                     46: #    calculated from all setX.db's in the class specified
                     47: #    by 'quiz_path' parameter in this file
                     48: # It is later refered in the file 'email.template' as $QZtotal_scp
                     49: 
                     50: var_quiz_total_score     := QZtotal_scp
                     51: 
                     52: # This variable is used to represent the total scores 
                     53: #    calculated from all setX.db's in the class specified
                     54: #    by 'quiz_path' parameter in this file
                     55: # It is later refered in the file 'email.template' as $QZtotal_max_scp
                     56: 
                     57: var_quiz_total_max        := QZtotal_max_scp
                     58: 
                     59: # This variable is used to represent the total number of 
                     60: #    setX.db's in the class specified by 'quiz_path' parameter in this file
                     61: # It is later refered in the file 'email.template' as $QZcount_scp
                     62: 
                     63: var_quiz_count            := QZcount_scp
                     64: 
                     65: # This variable is used to represent the total number of '-'
                     66: #    a student got in the term summary report. It represents that
                     67: #    the number of times the student is abscent from all the setX.db's 
                     68: #    in the class specified by 'quiz_path' parameter in this file
                     69: # It is not yet used in the file 'email.template,' but 
                     70: #    can be refered as $QZabsent_scp
                     71: 
                     72: var_quiz_absent           := QZabsent_scp
                     73: 
                     74: # This variable will return a one line string in the form 
                     75: #   xxx/xxx xxx/xxx xxx/xxx xxx/xxx xxx/xxx xxx/xxx
                     76: #  It gives the statistics for each set in the class specified by
                     77: #  'quiz_path' parameter in this file
                     78: # It is later refered in the file 'email.template' as $QZsummary
                     79: 
                     80: var_quiz_summary_string   := QZsummary
                     81: 
                     82: #
                     83: # Declares a class of variables with the same prefix
                     84: #  This declaration allows the access of individual set scores 
                     85: #  in the class specified by 'exam_path' parameter in this file
                     86: #  
                     87: 
                     88: prefix_exam_raw_scores     := exam_raw
                     89: 
                     90: # Thus, exam_raw1, exam_raw2, exam_raw3, exam_raw4 ... 
                     91: #  represent the individual set score
                     92: # These variables are used in the later definition of midterm1, midterm2, ...
                     93: # 
                     94: prefix_exam_raw_max        := exam_raw_max
                     95: 
                     96: # similar to the above, now the maximum scores for exam 1 is stored 
                     97: #  in variable exam_raw_max1
                     98: # These variables are used in the later definition of midterm1, midterm2, ...
                     99: 
                    100: # This parameter is used in calculation of corrected credits by 
                    101: #  successive corrections of their midterm exams
                    102: 
                    103: correction_factor = 0.3
                    104: 
                    105: # Correction formula for midterm exams
                    106: #   here midterm1, midterm2, midterm3, and final_exam 
                    107: #   are new variables whose definition depends on
                    108: #   the raw scores of each set in the class specified by 'exam_path'
                    109: 
                    110: ### The reason that we define midterm1, midterm2, midterm3 and final_exam here
                    111: ###  is that score report file need these definitions.
                    112: 
                    113: midterm1   ::
                    114: 
                    115: BEGIN_perl
                    116: 
                    117:   local($tmp);
                    118:   if($exam_raw2 >= $exam_raw1) {
                    119:     $tmp = $exam_raw1 + $correction_factor*($exam_raw2-$exam_raw1);
                    120:   } else {
                    121:     $tmp = $exam_raw1;
                    122:   }
                    123:   return ($tmp);
                    124: 
                    125: END_perl
                    126: 
                    127: 
                    128: midterm2   ::
                    129: 
                    130: BEGIN_perl
                    131: 
                    132:   local($tmp);
                    133:   if($exam_raw4 >= $exam_raw3) {
                    134:     $tmp = $exam_raw3 + $correction_factor*($exam_raw4-$exam_raw3);
                    135:   } else {
                    136:     $tmp = $exam_raw3;
                    137:   }
                    138:   return ($tmp);
                    139: 
                    140: END_perl
                    141: 
                    142: 
                    143: midterm3   ::
                    144: BEGIN_perl
                    145: 
                    146:   local($tmp);
                    147:   if($exam_raw6 >= $exam_raw5) {
                    148:     $tmp = $exam_raw5 + $correction_factor*($exam_raw6-$exam_raw5);
                    149:   } else {
                    150:     $tmp = $exam_raw5;
                    151:   }
                    152:   return ($tmp);
                    153: 
                    154: END_perl
                    155: 
                    156: 
                    157: final_exam = exam_raw7
                    158: 
                    159: # ---------------------------------------------------------------------
                    160: 
                    161: #
                    162: # New parameters:
                    163: #  the percentages used in final grade calculation
                    164: #   The sum may be over 100. 
                    165: #
                    166: 
                    167: hw_percent    = 30
                    168: qz_percent    = 7
                    169: mt1_percent   = 10
                    170: #mt2_percent   = 10
                    171: #mt3_percent   = 10
                    172: #final_percent = 35
                    173: 
                    174: mt2_percent   = 10
                    175: mt3_percent   = 10
                    176: final_percent = 0
                    177: 
                    178: # Default score boundaries for each category, the boundarie are inclusive
                    179: #   what to define for those falls in between categories?
                    180: #   for example, > 95.0, 85.0 < .. < 90.0, 75.0 < .. < 80.0 ...
                    181: # For student with scores that are not one of these categories, we need to 
                    182: # define a extra category (category 5) to denote that 
                    183: # those students fall through the crack. 
                    184: # In email.template file, there is a $default_sentence variable for this purpose.
                    185: #
                    186: category_one_high      =   68.0
                    187: category_one_low       =    0.1
                    188: 
                    189: category_two_high      =    0.1
                    190: category_two_low       =    0.1
                    191: 
                    192: category_three_high    =    0.1
                    193: category_three_low     =    0.1
                    194: 
                    195: category_four_high     =    0.1
                    196: category_four_low      =    0.1
                    197: 
                    198: #
                    199: ## Delete the first comment character and fill in the 
                    200: #   score to decide the boundary of each category
                    201: #
                    202: # category_one_high      =  
                    203: # category_one_low       =   
                    204: 
                    205: # category_two_high      =   
                    206: # category_two_low       =   
                    207: 
                    208: # category_three_high    =   
                    209: # category_three_low     =   
                    210: 
                    211: # category_four_high     =   
                    212: # category_four_low      =   
                    213: 
                    214: #
                    215: # this variable decides how many lines of entry displayed at one time
                    216: #   when display score file
                    217: 
                    218: display_score_row_limit  = 10
                    219: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>