Changeset View
Changeset View
Standalone View
Standalone View
src/activities/scalesboard_weight_avoirdupois/resource/2/Data.qml
- This file was added.
1 | /* GCompris - Data.qml | ||||
---|---|---|---|---|---|
2 | * | ||||
3 | * Copyright (C) 2020 Deepak Kumar <deepakdk2431@gmail.com> | ||||
4 | * | ||||
5 | * Authors: | ||||
6 | * Deepak Kumar <deepakdk2431@gmail.com> | ||||
7 | * | ||||
8 | * This program is free software; you can redistribute it and/or modify | ||||
9 | * it under the terms of the GNU General Public License as published by | ||||
10 | * the Free Software Foundation; either version 3 of the License, or | ||||
11 | * (at your option) any later version. | ||||
12 | * | ||||
13 | * This program is distributed in the hope that it will be useful, | ||||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
16 | * GNU General Public License for more details. | ||||
17 | * | ||||
18 | * You should have received a copy of the GNU General Public License | ||||
19 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||||
20 | */ | ||||
21 | import "../../../../core" | ||||
22 | | ||||
23 | Dataset { | ||||
24 | objective: qsTr("Balance the scales until 10 ounces.") | ||||
25 | difficulty: 2 | ||||
26 | | ||||
27 | function oz(value) { | ||||
28 | /* oz == ounce */ | ||||
29 | return qsTr("%1 oz").arg(value) | ||||
30 | } | ||||
31 | | ||||
32 | data: [ | ||||
33 | { | ||||
34 | "masses": [[1, oz(1)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)]], | ||||
35 | "targets": [[3, oz(3)], [4, oz(4)], [5, oz(5)]], | ||||
36 | "rightDrop": false, | ||||
37 | "message": qsTr('The "oz" symbol at the end of a number means ounce. One pound equals sixteen ounces. \n Drop weights on the left side to balance the scale.' ) | ||||
38 | }, | ||||
39 | { | ||||
40 | "masses": [[1, oz(1)], [2, oz(2)], [2, oz(2)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)]], | ||||
41 | "targets": [[3, oz(3)], [4, oz(4)], [5, oz(5)],[7, oz(7)],[8, oz(8)], [10, oz(10)],[9, oz(9)]], | ||||
42 | "rightDrop": false, | ||||
43 | "message": qsTr("Drop weights on the left side to balance the scale.") | ||||
44 | }, | ||||
45 | { | ||||
46 | "masses": [[6, oz(6)], [9, oz(9)], [6, oz(6)], [5, oz(5)], [9, oz(9)], [7, oz(7)], [11, oz(11)]], | ||||
47 | "targets": [[3, oz(3)], [8, oz(8)], [7, oz(7)],[10, oz(10)]], | ||||
48 | "message": qsTr("Take care, you can drop weights on both sides of the scale."), | ||||
49 | "rightDrop": true | ||||
50 | }, | ||||
51 | { | ||||
52 | "masses": [[1, oz(1)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)]], | ||||
53 | "targets": [[4, oz(4)], [1, oz(1)], [5, oz(5)]], | ||||
54 | "rightDrop": false, | ||||
55 | "message": qsTr("Now you have to guess the weight of the gift."), | ||||
56 | "question": qsTr("Enter the weight of the gift in ounce: %1") | ||||
57 | }, | ||||
58 | { | ||||
59 | "masses": [[1, oz(1)], [8, oz(8)], [2, oz(2)], [2, oz(2)], [7, oz(7)], [9, oz(9)], [6, oz(6)]], | ||||
60 | "targets": [[4, oz(4)], [7, oz(7)], [10, oz(10)],[5, oz(5)], [6, oz(6)]], | ||||
61 | "rightDrop": false, | ||||
62 | "message": qsTr("Now you have to guess the weight of the gift."), | ||||
63 | "question": qsTr("Enter the weight of the gift in ounce: %1") | ||||
64 | } | ||||
65 | ] | ||||
66 | } | ||||
67 | | ||||
68 | | ||||
69 | | ||||
70 | | ||||
71 | |