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