Error
There was an error loading the page.
Choose from one of several pre-defined scenarios, and set variables to the corresponding values, defined in lists.
This question has three variables: city
, population
, and percent_like_chocolate
. These differ for each city. We've defined a list for each variable, with the corresponding values. A variable called scenario
picks a random position in the list, so the value of city
, for example, is cities[scenario]
.
Metadata
-
England schools
-
England university
-
Scotland schools
Taxonomy: mathcentre
Taxonomy: Kind of activity
Taxonomy: Context
Contributors
History
Christian Lawson-Perfect 8 years, 2 months ago
Published this.Christian Lawson-Perfect 8 years, 2 months ago
Created this.Name | Status | Author | Last Modified | |
---|---|---|---|---|
Several variables corresponding to a scenario | draft | Christian Lawson-Perfect | 09/12/2019 10:38 | |
Use a dictionary to set several variables corresponding to a scenario | Ready to use | Christian Lawson-Perfect | 18/06/2020 15:00 | |
j's copy of Several variables corresponding to a scenario - Swansea | draft | j hopkins | 30/09/2019 14:59 |
There are 11 other versions that do you not have access to.
Name | Type | Generated Value |
---|
cities | list |
List of 5 items
|
||||
populations | list |
List of 5 items
|
||||
percents_like_chocolate | list |
[ 12, 34, 45, 82, 71 ]
|
Name | Type | Generated Value |
---|
scenario | integer |
1
|
||||
city | string |
Bognor Regis
|
||||
population | integer |
24064
|
||||
percent_like_chocolate | integer |
34
|
||||
num_like_chocolate | decimal |
dec("8182")
|
Name | Type | Generated Value |
---|
Generated value: list
[ "Lowestoft", "Bognor Regis", "Maryport", "Fort William", "Norwich" ]
→ Used by:
- city
- scenario
This variable doesn't seem to be used anywhere.
Parts
Use this tab to check that this question works as expected.
Part | Test | Passed? |
---|---|---|
Number entry | ||
Hasn't run yet |