Changeset View
Changeset View
Standalone View
Standalone View
src/activities/scalesboard_weight_avoirdupois/resource/4/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 pounds.") | ||||
25 | difficulty: 3 | ||||
26 | | ||||
27 | function lb(value) { | ||||
28 | /* lb == pound */ | ||||
29 | return qsTr("%1 lb").arg(value) | ||||
30 | } | ||||
31 | | ||||
32 | data: [ | ||||
33 | { | ||||
34 | "masses": [[1, lb(1)], [1, lb(1)], [2, lb(2)], [1, lb(1)], [2, lb(2)], [1, lb(1)], [2, lb(2)]], | ||||
35 | "targets": [[1, lb(1)], [2, lb(2)], [3, lb(3)]], | ||||
36 | "rightDrop": false, | ||||
37 | "message": qsTr('The "lb" symbol at the end of a number means pound.' + " " + | ||||
38 | 'The pound is a unit of mass, a property which corresponds to the ' + | ||||
39 | 'common perception of how "heavy" an object is. This unit is used in the USA.') | ||||
40 | }, | ||||
41 | { | ||||
42 | "masses": [[1, lb(1)], [2, lb(2)], [2, lb(2)], [1, lb(1)], [2, lb(2)], [1, lb(1)], [2, lb(2)]], | ||||
43 | "targets": [[2, lb(2)], [4, lb(4)], [5, lb(5)],[1, lb(1)]], | ||||
44 | "rightDrop": false, | ||||
45 | "message": qsTr("Drop weights on the left side to balance the scale.") | ||||
46 | }, | ||||
47 | { | ||||
48 | "masses": [[1, lb(1)], [2, lb(2)], [2, lb(2)], [1, lb(1)], [2, lb(2)], [1, lb(1)], [2, lb(2)]], | ||||
49 | "targets": [[3, lb(3)], [4, lb(4)], [5, lb(5)],[7, lb(7)],[2, lb(2)]], | ||||
50 | "rightDrop": false, | ||||
51 | "message": qsTr("Drop weights on the left side to balance the scale.") | ||||
52 | }, | ||||
53 | { | ||||
54 | "masses": [[1, lb(1)], [2, lb(2)], [3, lb(3)], [5, lb(5)], [2, lb(2)], [4, lb(4)], [2, lb(2)]], | ||||
55 | "targets": [[3, lb(3)], [4, lb(4)], [5, lb(5)],[7, lb(7)],[8, lb(8)], [10, lb(10)],[9, lb(9)]], | ||||
56 | "rightDrop": false, | ||||
57 | "message": qsTr("Drop weights on the left side to balance the scale.") | ||||
58 | }, | ||||
59 | { | ||||
60 | "masses": [[5, lb(5)], [7, lb(7)], [9, lb(9)], [6, lb(6)], [5, lb(5)], [4, lb(4)], [7, lb(7)]], | ||||
61 | "targets": [[2, lb(2)], [3, lb(3)],[1, lb(1)]], | ||||
62 | "rightDrop": true, | ||||
63 | "message": qsTr("Take care, you can drop weights on both sides of the scale."), | ||||
64 | | ||||
65 | }, | ||||
66 | { | ||||
67 | "masses": [[5, lb(5)], [7, lb(7)], [9, lb(9)], [6, lb(6)], [5, lb(5)], [6, lb(6)], [7, lb(7)]], | ||||
68 | "targets": [[4, lb(4)], [3, lb(3)],[5, lb(5)]], | ||||
69 | "rightDrop": true, | ||||
70 | "message": qsTr("Take care, you can drop weights on both sides of the scale."), | ||||
71 | | ||||
72 | }, | ||||
73 | { | ||||
74 | "masses": [[8, lb(8)], [11, lb(11)], [9, lb(9)], [10, lb(10)], [12, lb(12)], [4, lb(4)], [9, lb(9)]], | ||||
75 | "targets": [[2, lb(2)], [6, lb(6)],[7, lb(7)],[5, lb(5)]], | ||||
76 | "rightDrop": true, | ||||
77 | "message": qsTr("Take care, you can drop weights on both sides of the scale."), | ||||
78 | | ||||
79 | }, | ||||
80 | { | ||||
81 | "masses": [[6, lb(6)], [9, lb(9)], [6, lb(6)], [5, lb(5)], [9, lb(9)], [7, lb(7)], [11, lb(11)]], | ||||
82 | "targets": [[3, lb(3)], [8, lb(8)], [7, lb(7)],[10, lb(10)]], | ||||
83 | "message": qsTr("Take care, you can drop weights on both sides of the scale."), | ||||
84 | "rightDrop": true | ||||
85 | }, | ||||
86 | { | ||||
87 | "masses": [[1, lb(1)], [1, lb(1)], [2, lb(2)], [1, lb(1)], [2, lb(2)], [1, lb(1)], [2, lb(2)]], | ||||
88 | "targets": [[1, lb(1)], [2, lb(2)], [3, lb(3)]], | ||||
89 | "rightDrop": false, | ||||
90 | "message": qsTr("Now you have to guess the weight of the gift."), | ||||
91 | "question": qsTr("Enter the weight of the gift in pound: %1") | ||||
92 | }, | ||||
93 | { | ||||
94 | "masses": [[1, lb(1)], [2, lb(2)], [2, lb(2)], [1, lb(1)], [2, lb(2)], [1, lb(1)], [2, lb(2)]], | ||||
95 | "targets": [[3, lb(3)], [5, lb(5)], [7, lb(7)], [2, lb(2)]], | ||||
96 | "rightDrop": false, | ||||
97 | "message": qsTr("Now you have to guess the weight of the gift."), | ||||
98 | "question": qsTr("Enter the weight of the gift in pound: %1") | ||||
99 | }, | ||||
100 | { | ||||
101 | "masses": [[1, lb(1)], [1, lb(1)], [2, lb(2)], [1, lb(1)], [2, lb(2)], [1, lb(1)], [2, lb(2)]], | ||||
102 | "targets": [[4, lb(4)], [1, lb(1)], [5, lb(5)]], | ||||
103 | "rightDrop": false, | ||||
104 | "message": qsTr("Now you have to guess the weight of the gift."), | ||||
105 | "question": qsTr("Enter the weight of the gift in pound: %1") | ||||
106 | }, | ||||
107 | { | ||||
108 | "masses": [[1, lb(1)], [8, lb(8)], [2, lb(2)], [2, lb(2)], [7, lb(7)], [9, lb(9)], [6, lb(6)]], | ||||
109 | "targets": [[4, lb(4)], [7, lb(7)], [10, lb(10)],[5, lb(5)], [6, lb(6)]], | ||||
110 | "rightDrop": false, | ||||
111 | "message": qsTr("Now you have to guess the weight of the gift."), | ||||
112 | "question": qsTr("Enter the weight of the gift in pound: %1") | ||||
113 | } | ||||
114 | ] | ||||
115 | } |