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