Subversion Repositories wimsdev

Rev

Rev 7638 | Rev 8463 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
!default uu=$wims_read_parm
2
 
7612 bpr 3
!!one line by sheet : points quality
20 reyssat 4
percents=!getscorepercent user=$uu
7638 bpr 5
 
20 reyssat 6
percnt=!linecnt $percents
7
per=0
8
av=0
9
 
7612 bpr 10
!! add new indicator, it should be better if it would created in the line
11
!!percents in the future
12
!! w_$i etc are defined in sheetweights
7638 bpr 13
!!give an average for all sheets and for the user $uu - even not seen in sequences ??
7664 bpr 14
 
20 reyssat 15
!for i=1 to $percnt
16
 perc=!line $i of $percents
7664 bpr 17
 !distribute words $perc into p1,p2,p3,p4
20 reyssat 18
 !if $p2!=$empty and $(w_$i)!=$empty
7664 bpr 19
  !distribute item $[$p1/100],$[$p2/10],$[$p3/100],$[$p4/100] into x0_,y_,x1_,x2_
20
  !set ff_$i=!mathsubst Q=$y_ in $(f_$i)
21
  !for sev=0 to 2
22
     !set ff_$i=!mathsubst I$sev=$(x$(sev)_) in $(ff_$i)
23
  !next
24
   per=$[$per+($(w_$i))*$(ff_$i)]
20 reyssat 25
 !endif
26
!next i
27
 
28
examout=!examscore user=$uu
2733 guerimand 29
 
20 reyssat 30
!for i in $activexams
31
 es_$i=!word $i of $examout
32
 per=$[$per+$(ew_$i)*$(es_$i)/10]
33
!next i
34
 
35
!if $totweight>0
36
 per=$[rint($scoremax*100*$per/$totweight)/100]
37
!else
38
 per=0
39
!endif
40