2:7IGive each paper or section a short heading._esg(ontroW%,1)7Zȉexam%A0123456789.;IEnter the total which the section is marked out of.mmer"A0123456789.m$="MA0123456789.xam$+A0123456789.pand(A0123456789.W%,1)A0123456789.;IEnter the number of percentage points which the section is worth.am$7A0123456789.(contA0123456789.7È:A0123456789.te7ÜA0123456789.%AGE,7æç100.0%AGEáExam%=&0102010A7ú,Percent()=0:Factor()=0:Sum()=0:SumSq()=08ã J%=1 ¸ 58> X=»($¤text(headingW%J%+7)):Y=»($¤text(headingW%,J%+1))8 ç X0 € Y0 …8 %+=1, Factor(J%)=Y/X86 Í8@í J%8Jã I%= ¸ MaRows%18T $¤tet(maiW%,I%8+6)=""8^! ç $¤text(mainW%,I%*)<>""…8h P=:Hold)=08 J%=1¸ C%8|, Hold(J%)=»($¤text(ainW%I%*8+%))8 J%8 Ɖ(Hld())>0 …8Œ N%+=18¤ Sum(=Sum(+Hold)8® old2(=Hold)*Hold()8¸! SumSq()=SumSq(+Hold()8 Hold(=Hold)*Facor()Ì P=Ɖ(Hold())8Ö Pecent(%)=Pà! Sum6)+=PSumSq6)+=P28ê$ $¤text(mainW%,I%*8+6)Ã(P)ô Í8þ Í9í I%ç N>0 … Sum()=Sum()/N%9& Hold()=Sm()*Sm()9 SuSq()=umSq(/N%9 SuSq()=SumSq()-Hold()9D ã J%=1 69N çSum(J)>0 …9X1 $¤ext(minW%,MaxRows%*8+J%)=Ã(Sum(J%))98 $¤tet(maiW%,MaRows%8+8+J)=Ã(¶SumSq(J%)))9l Í9v
í J%9Í9⇩@%=&00A9“$¤tex(contolW%,5)=Ã(%)9fi*È− "Wimp_ForceRedraw",-1,00,128,10249¨á²:9Ý òsrt(N%colum%)9Æê M%,I%,J%,B%,A%,A1%,A2%9ç Su$="" á9Úç colmn%=0…9äL È− "S_HeapSort",N%,(block% ☓ (1<<30)☓ (1<31)),,,¤tet(maiW%,0)759î Ì9 M%=N%: õ: M%=(M%+2)Ŵ 3: I%=M+1 ¸ %: J%=I ¸ M%+1 ⇦-M%:*X ç »($¤tet(maiW%,(J-1)*8colum%))>»$¤tex(main%,(J%-M%-1)*8+column%)) …:4( A1%=¤ext(minW%,J%-1)8):> A2%=¤text(mainW%,(J%-M%-1)*8:H ã B=0 ¸ 4:R “ A1%?B%,A2%?B%:\ í B:f Í:p J%: I%: ý M%=1:‰Í:—ȉ column% Ê:$ É :$¤tet(conrolW%6)="Rnk":% É :$¤text(controlW%,6)="Alpha":¶:À*È "Wim_ForcRedra",-1,,0,120,102:Êá:Ô::ÞÝ òwrite_back(sub$:è+êrow%,tudens%,re$,res,exam,star%:òcç ¤confirm("Write results fr "+$text(ontroW%,11+" bak to atabae? Are you sure?")<>¹ … á:ü%stuents%»($¤txt(cotrolW,12));"maks%=»$¤text(controlW%,15));*dbasehadle%=($datbase%".Datbase";$eam%=¤elected_esg(controlW%,1);$ȉ eam% Ê;. 7:strt%=NvFiel%;8 É 8:tart%=EasField%;B É 9:start%=umFied%;L É 1:star%=Mckield%;VË`È− "Hourglass_On";jã row%=1 studnts%t& rs$=$¤ext(minW%,row%-)*8+6);~ ç res$<>"" …;⇦ es%=¨»(res));‹ çres%=00 … es$="H" ⇧ res$=Ã(res%);†+ REC%=»(¤textmainW,(row-1)*87)); read_ec(REC%);°) òwrite_rec(REC%,es$,sb$,strt%)º3 È− "Hurglas_Perentage",row%*100 Ŵ marks%;Ä Í;Î
í ow%;È− "ourglss_Of";âclosefile(dbasehandle%);ìá;ö:< òrea_rec(EC%)