forked from autolab/Autolab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__defaultCourse.rb
executable file
·61 lines (57 loc) · 1.66 KB
/
__defaultCourse.rb
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
56
57
58
59
60
61
#
# course.rb - Autolab Course Configuration File
#
# This file is cached on the Autolab server.
#
# To make your changes go live: Admin->Reload course config file
#
# To check for typos before reloading in Autolab:
# linux> irb
# irb> load 'course.rb'
# irb> quit
#
#
# 1. Assessment category averages - The first set of functions control
# how the student's average score for each assessment category is
# computed. For each assessment category "foo", you'll need to define
# a function called fooAverage(). For example, if there is an
# assessment category called "Lab", then you define a function called
# LabAverage()
#
# The scores for each assessment are available as user['bar'].to_f(),
# where bar is the name of the assessment. For example, if you had two
# assignments called "datalab" and "bomblab" in the "Lab" category, you
# might say:
#
# def LabAverage(user)
# return ((user['datalab'].to_f() + user['bomblab'].to_f())
# / (64+70)) * 100.0
# end
#
#
# fooAverage - Computes the gradebook average for category "foo"
#
def fooAverage(_user)
0
end
#
# 2. courseAverage - This function computes a course average as a
# function of the averages of each of the assessment categories. The
# average for category foo (computed by fooAverage() above) is available
# as user['catfoo'].to_f(). For example, if you've defined assessment
# categories "Lab" and "Exam", then an example courseAverage() function
# might be:
#
# def courseAverage(user)
# return (user['catLab'].to_f())*0.4 + user['catExam'].to_f())*0.6
# end
#
def courseAverage(_user)
0
end
#
# 3. gradebookMessage - Displays a message on the student gradebook
#
def gradebookMessage
" "
end