Rev 11375 | Rev 13704 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11375 | Rev 11544 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | 5 | ||
6 | :A numerical exercise with two random parameters. |
6 | :A numerical exercise with two random parameters. |
7 | 7 | ||
8 | The numeric reply is computed with respect to random values of two parameters, |
8 | The numeric reply is computed with respect to random values of two parameters, |
9 | according to various formulas. |
9 | according to various formulas. |
10 | <p> |
- | |
11 | Author of the model: |
10 | <p>Author of the model: Gang Xiao <qualite@wimsedu.info></p> |
12 | 11 | ||
13 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
12 | :%%%%%%%%%%%%%%%%% ATTENTION %%%%%%%%%%%%%%%%%%%% |
14 | 13 | ||
15 | Remove the above header if you destroy the model tags i.e. the lines starting |
14 | Remove the above header if you destroy the model tags i.e. the lines starting |
16 | with a ':'. Otherwise the exercise might not be recognised by Createxo. |
15 | with a ':'. Otherwise the exercise might not be recognised by Createxo. |
Line 38... | Line 37... | ||
38 | \text{explain= |
37 | \text{explain= |
39 | A fashion article in a clothes shop costs \x dollars. During a |
38 | A fashion article in a clothes shop costs \x dollars. During a |
40 | sales period, the shop offers a reduction of \y percent on the article. |
39 | sales period, the shop offers a reduction of \y percent on the article. |
41 | What is the reduced price (in dollars)? |
40 | What is the reduced price (in dollars)? |
42 | } |
41 | } |
43 | :Mise en aléatoire par des accolades emboitables |
- | |
44 | $embraced_randitem |
- | |
45 | \text{accolade=item(1,1 oui, |
- | |
46 | 2 non)} |
- | |
47 | 42 | ||
- | 43 | :Embraced random items |
|
- | 44 | $embraced_randitem |
|
- | 45 | \text{accolade=item(1,1 yes, |
|
- | 46 | 2 no)} |
|
- | 47 | ||
48 | :%% |
48 | :%% Do not modify |
49 | \text{accolade=wims(word 1 of \accolade)} |
49 | \text{accolade=wims(word 1 of \accolade)} |
50 | \text{explain=\accolade=1 ?wims(embraced randitem \explain)} |
50 | \text{explain=\accolade=1 ?wims(embraced randitem \explain)} |
51 | 51 | ||
52 | :%%%%%%%%%%%%% Now the statement in html. %%%%%%%%%%%%%%%%%%%% |
52 | :%%%%%%%%%%%%% Now the statement in html. %%%%%%%%%%%%%%%%%%%% |
53 | 53 | ||
54 | ::You don't need to modify this in general. |
54 | ::You don't need to modify this in general. |
55 | 55 | ||
56 | \statement{\explain |
56 | \statement{\explain} |
57 | } |
- | |
58 | 57 | ||
59 | :%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5 |
58 | :%%%%%%%%%%%%% Nothing to modify after. %%%%%%%%%%%%%%%%%5 |
60 | 59 | ||
61 | \answer{My reply}{\ans}{type=number} |
60 | \answer{My reply}{\ans}{type=number} |