Changeset View
Changeset View
Standalone View
Standalone View
src/activities/scalesboard_weight/resource/3/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 20 grams.") | ||||
25 | difficulty: 3 | ||||
26 | | ||||
27 | function g(value) { | ||||
28 | /* g == gram */ | ||||
29 | return qsTr("%1 g").arg(value) | ||||
30 | } | ||||
31 | | ||||
32 | data: [ | ||||
33 | { | ||||
34 | "masses": [[1, g(1)], [2, g(2)], [2, g(2)], [1, g(1)], [2, g(2)], [1, g(1)], [2, g(2)]], | ||||
35 | "targets": [[3, g(3)], [4, g(4)], [5, g(5)],[7,g(7)],[8,g(8)], [10,g(10)],[9,g(9)]], | ||||
36 | "rightDrop": false, | ||||
37 | "message": qsTr('The "g" symbol at the end of a number means gram. \n Drop weights on the left side to balance the scale.') | ||||
38 | | ||||
39 | }, | ||||
40 | { | ||||
41 | "masses": [[10, g(10)], [2, g(2)], [3, g(3)], [1, g(1)], [2, g(2)], [1, g(1)], [5, g(5)]], | ||||
42 | "targets": [[13, g(13)], [14, g(14)], [15, g(15)],[17,g(17)],[18,g(18)], [20,g(20)],[19,g(19)]], | ||||
43 | "rightDrop": false, | ||||
44 | "message": qsTr("Drop weights on the left side to balance the scale.") | ||||
45 | | ||||
46 | }, | ||||
47 | { | ||||
48 | "masses": [[2, g(2)], [20, g(20)], [6, g(6)], [5, g(5)], [9, g(9)], [9, g(9)], [20, g(20)]], | ||||
49 | "targets": [[16, g(16)], [13, g(13)], [19, g(19)],[17, g(17)]], | ||||
50 | "message": qsTr("Take care, you can drop weights on both sides of the scale."), | ||||
51 | "rightDrop": true | ||||
52 | }, | ||||
53 | { | ||||
54 | "masses": [[1, g(1)], [8, g(8)], [2, g(2)], [2, g(2)], [7, g(7)], [9, g(9)], [6, g(6)]], | ||||
55 | "targets": [[4, g(4)], [7, g(7)], [10, g(10)],[5, g(5)], [6, g(6)]], | ||||
56 | "rightDrop": false, | ||||
57 | "message": qsTr("Now you have to guess the weight of the gift."), | ||||
58 | "question": qsTr("Enter the weight of the gift in gram: %1") | ||||
59 | }, | ||||
60 | { | ||||
61 | "masses": [[10, g(10)], [2, g(2)], [3, g(3)], [1, g(1)], [2, g(2)], [1, g(1)], [5, g(5)]], | ||||
62 | "targets": [[13, g(13)], [14, g(14)], [15, g(15)],[17,g(17)],[18,g(18)], [20,g(20)],[19,g(19)]], | ||||
63 | "rightDrop": false, | ||||
64 | "message": qsTr("Now you have to guess the weight of the gift."), | ||||
65 | "question": qsTr("Enter the weight of the gift in gram: %1") | ||||
66 | | ||||
67 | }, | ||||
68 | ] | ||||
69 | } | ||||
70 | | ||||
71 | | ||||
72 | | ||||
73 | |