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