Subversion Repositories wimsdev

Rev

Rev 15179 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13501 czzmrn 1
type=order
13715 obado 2
textarea="data instruction"
3
iEdit="instruction"
4821 czzmrn 4
 
5
:Linea del tempo
6
Eventi da ordinare secondo l'ordine cronologico.
13479 obado 7
<p class="wims_credits">
15179 lemaire 8
Autore del modello: <a href="mailto:bernadette.m.riou@orange.fr">Bernadette Perrin-Riou</a>
4821 czzmrn 9
</p>
10
:%%%%%%%%%%%%%%%%%      ATTENZIONE      %%%%%%%%%%%%%%%%%%%%
11
 
12
Se si rimuovono le indicazioni del modulo modelli (le righe che
13
cominciano con ':') è necessario rimuovere tutta questa parte
14
introduttiva del file. Altrimenti Createxo potrebbe non accettare il
15
codice dell'esercizio.
16
 
17
:%%%%%%%% Parametri che possono essere ridefiniti %%%%%%%%%%%%%%%%%
18
:\title{Linea del tempo}
5147 bpr 19
:\author{Bernadette, Perrin-Riou}
5724 bpr 20
:\email{}
21
:\credits{}
13479 obado 22
 
4821 czzmrn 23
:Consegna
24
\text{instruction=Nella parte in basso inserire, in ordine, le date. In
4824 czzmrn 25
corrispondenza, nella parte in alto inserire gli eventi.}
13479 obado 26
 
4821 czzmrn 27
:Numero di eventi (massimo 10)
28
\text{N=5}
13479 obado 29
 
5779 czzmrn 30
:Colore della freccia
4821 czzmrn 31
\text{couleur=orange}
13479 obado 32
 
4821 czzmrn 33
:Larghezza delle etichette
34
\text{facteur=100}
13479 obado 35
 
4821 czzmrn 36
:Altezza delle etichette
37
\integer{height=100}
13479 obado 38
 
5779 czzmrn 39
:Larghezza della freccia
40
Un intero tra 1 e 3
5744 bpr 41
\integer{wi=1}
13479 obado 42
 
13501 czzmrn 43
:utilizza i due elementi di dati (0), solo la prima colonna (1), solo la seconda colonna (2), affiche la première colonne et demande la première colonne (3).
4821 czzmrn 44
\text{choix=0}
13479 obado 45
 
4821 czzmrn 46
:Contenuto effettivo dell'esercizio.
5779 czzmrn 47
Inserire i dati nell'ordine in cui devono apparire.
4821 czzmrn 48
\text{data=1515,Bataille de Marignan
49
1680,Création de la Comédie Française
50
1789,Révolution française
51
1830,Les Trois Glorieuses
52
1831,Révolte des Canuts à Lyon
53
1848,Décret abolissant l'esclavage
54
1889,Inauguration de la tour Eiffel à Paris
55
1944,Les femmes acquièrent le droit de vote
56
1981,Abolition de la peine de mort}
57
 
13501 czzmrn 58
:Scelte casuali di elementi inseriti tra parentesi graffe
8530 czzmrn 59
$embraced_randitem
13556 czzmrn 60
\text{accolade=item(1,1 sì,
8530 czzmrn 61
2 no)}
62
 
4821 czzmrn 63
:%%%%%%%%%%%%%% Nulla da modificare da qui in poi %%%%%%%%%%%%%%%%
8530 czzmrn 64
\text{accolade=wims(word 1 of \accolade)}
4821 czzmrn 65
\real{M=\N-0.3}
66
\text{xrange=-1,\N+1}
8530 czzmrn 67
\text{yrange=\choix iswordof 0 ? -5,5:-2,5}
4821 czzmrn 68
\text{yrange=\choix=1 ? -5,2}
8530 czzmrn 69
\text{yrange=\choix=3 ? -5,4}
4821 czzmrn 70
\text{cnt=rows(\data)}
71
\text{shu=shuffle(\cnt)}
72
\text{shu=\shu[1..\N]}
73
\text{shu=wims(sort numeric item \shu)}
74
\text{data=row([\shu],\data)}
8530 czzmrn 75
\text{data=\accolade=1 ? wims(embraced randitem \data)}
4821 czzmrn 76
\matrix{rep=\data}
77
\integer{size=(1.5*\facteur)*(\M+1)}
78
\integer{height2=4*\height}
79
\text{size=\size,\height2}
80
\text{fleche=xrange \xrange
81
yrange \yrange
18080 bpr 82
polyline \couleur,\M,\wi/2,-1,\wi/2,-1,-\wi/2,\M,-\wi/2,\M,-\wi,\N+0.5,0,\M,\wi,\M,\wi/2
8530 czzmrn 83
fill 0,0,\couleur
4821 czzmrn 84
}
85
 
86
\text{STEP=\choix=0 ? wims(values x for x=1 to 2*\N)}
87
\text{STEP=\choix=1 ? wims(values 2*x-1 for x=1 to \N)}
8530 czzmrn 88
\text{STEP=\choix=2 or \choix=3? wims(values 2*x for x=1 to \N)}
4821 czzmrn 89
\text{STEP=wims(makelist r x for x in  \STEP)}
90
\steps{\STEP}
91
\text{positionbas=}
92
\text{positionhaut=}
8530 czzmrn 93
\text{positionbas2=}
4821 czzmrn 94
\for{j=0 to \N-1}{
8530 czzmrn 95
  \text{fleche=\choix=0 or \choix=1 or \choix=3 ? \fleche
18080 bpr 96
  segment \j-0.1,-\wi/2,\j-0.1,-2*\wi,\couleur}
8530 czzmrn 97
  \text{fleche=\choix=0 or \choix=2 or \choix=3? \fleche
18080 bpr 98
  segment \j-0.1,\wi/2,\j-0.1,2*\wi,\couleur}
4821 czzmrn 99
  \text{ans=pari([2*\j+1,2*\j+2])}
8530 czzmrn 100
  \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)}
101
  \text{positionbas=\positionbas
102
 r\ans[1],\v[1] x \v[2]}
4821 czzmrn 103
 \text{v=slib(draw/convpixel \j-0.5,-2,\size,\xrange,\yrange,0,pixels)}
8530 czzmrn 104
 \text{positionbas2=\positionbas2
105
 r\ans[2],\v[1] x \v[2]}
106
  \text{v=slib(draw/convpixel \j-0.5,4,\size,\xrange,\yrange,0,pixels)}
107
  \text{positionhaut=\positionhaut
4821 czzmrn 108
r\ans[2],\v[1] x \v[2]}
8530 czzmrn 109
 
110
 \text{fleche=\choix=3? \fleche
111
 text black, \j-0.2,3,medium,\data[\j+1;1]}
4821 czzmrn 112
 }
8530 czzmrn 113
  \text{position=\choix=1 or \choix=0? \positionbas}
114
  \text{position=\choix=2 or \choix=0? \position
4821 czzmrn 115
 \positionhaut}
8530 czzmrn 116
 \text{position=\choix=3? \positionbas2}
4821 czzmrn 117
 \text{urlfleche=draw(\size
118
\fleche)}
8530 czzmrn 119
\statement{
120
\instruction
5744 bpr 121
<div class="wimscenter">
4821 czzmrn 122
\special{imagefill \urlfleche,\size[1]x\size[2],\facteur x \height
123
\position}
5744 bpr 124
</div>
4821 czzmrn 125
}
126
 
127
\answer{}{\rep[1;1]}{type=clickfill}{option=shuffle}
128
\answer{}{\rep[1;2]}{type=clickfill}{option=shuffle}
129
\answer{}{\rep[2;1]}{type=clickfill}{option=shuffle}
130
\answer{}{\rep[2;2]}{type=clickfill}{option=shuffle}
131
\answer{}{\rep[3;1]}{type=clickfill}{option=shuffle}
132
\answer{}{\rep[3;2]}{type=clickfill}{option=shuffle}
133
\answer{}{\rep[4;1]}{type=clickfill}{option=shuffle}
134
\answer{}{\rep[4;2]}{type=clickfill}{option=shuffle}
135
\answer{}{\rep[5;1]}{type=clickfill}{option=shuffle}
136
\answer{}{\rep[5;2]}{type=clickfill}{option=shuffle}
137
\answer{}{\rep[6;1]}{type=clickfill}{option=shuffle}
138
\answer{}{\rep[6;2]}{type=clickfill}{option=shuffle}
139
\answer{}{\rep[7;1]}{type=clickfill}{option=shuffle}
140
\answer{}{\rep[7;2]}{type=clickfill}{option=shuffle}
141
\answer{}{\rep[8;1]}{type=clickfill}{option=shuffle}
142
\answer{}{\rep[8;2]}{type=clickfill}{option=shuffle}
143
\answer{}{\rep[9;1]}{type=clickfill}{option=shuffle}
144
\answer{}{\rep[9;2]}{type=clickfill}{option=shuffle}
145
\answer{}{\rep[10;1]}{type=clickfill}{option=shuffle}
8530 czzmrn 146
\answer{}{\rep[10;2]}{type=clickfill}{option=shuffle}