Debian Codegraph @

src/activities/scalesboard_weight_avoirdupois/resource/6/Data.qml

raw
1 /* GCompris - Data.qml
2 *
3 * SPDX-FileCopyrightText: 2020 Deepak Kumar <[email protected]>
4 *
5 * Authors:
6 * Deepak Kumar <[email protected]>
7 *
8 * SPDX-License-Identifier: GPL-3.0-or-later
9 */
10 import core 1.0
11
12 Data {
13 objective: qsTr("Balance up to 10 pounds including ounces.")
14 difficulty: 4
15
16 function oz(value: int) : string {
17 /* oz == ounce */
18 return qsTr("%1 oz").arg(value)
19 }
20 readonly property string lb_1: qsTr("%1 lb").arg(1)
21 readonly property string lb_2: qsTr("%1 lb").arg(2)
22 readonly property string lb_3: qsTr("%1 lb").arg(3)
23 readonly property string lb_4: qsTr("%1 lb").arg(4)
24 readonly property string lb_5: qsTr("%1 lb").arg(5)
25 function lb(value: int) : string {
26 /* lb == pound */
27 return qsTr("%1 lb").arg(value)
28 }
29
30 data: [
31 {
32 "masses": [[1, lb_1], [2, lb_2], [2, lb_2], [1, lb_1], [2, lb_2], [1, lb_1], [2, lb_2]],
33 "targets": [[3, lb_3], [4, lb_4], [5, lb_5]],
34 "rightDrop": false,
35 "message": qsTr('The "lb" symbol at the end of a number means pound.' + " " +
36 'The pound is a unit of mass, a property which corresponds to the ' +
37 'common perception of how "heavy" an object is. This unit is used in the USA.')
38
39
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": [[3, lb_3], [4, lb_4], [5, lb_5], [7, lb(7)], [9, lb(9)], [10, lb(10)]],
44 "rightDrop": false,
45 "message": qsTr("Drop weights on the left side to balance the scales.")
46
47 },
48 {
49 "masses": [[8, oz(8)], [16, lb_1], [16, lb_1], [8, oz(8)], [48, lb_3], [16, lb_1]],
50 "targets": [[16, lb_1], [64, lb_4], [32, lb_2],[80, lb_5]],
51 "rightDrop": false,
52 "message": qsTr('Remember, one pound ("lb") equals sixteen ounces ("oz"). \n Drop the weights on the left side of the scales to balance it.')
53 },
54 {
55 "masses": [[32, oz(32)], [80, lb_5], [16, oz(16)], [64, lb_4], [32, lb_2], [16, lb_1]],
56 "targets": [[96, lb(6)], [64, oz(64)], [32, lb_2],[80, oz(80)],[128, lb(8)], [160, lb(10)]],
57 "rightDrop": false,
58 "message": qsTr('Remember, one pound ("lb") equals sixteen ounces ("oz"). \n Drop the weights on the left side of the scales to balance it.')
59 },
60 {
61 "masses": [[1, lb_1], [2, lb_2], [2, lb_2], [1, lb_1], [2, lb_2], [1, lb_1], [2, lb_2]],
62 "targets": [[3, lb_3], [4, lb_4], [5, lb_5]],
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 pound: %1")
66 },
67 {
68 "masses": [[6, oz(6)], [16, lb_1], [32, lb_2], [10, oz(10)], [16, lb_1], [16, lb_1]],
69 "targets": [[16, lb_1], [64, lb_4], [32, lb_2],[80, 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 ounce: %1")
73 },
74 {
75 "masses": [[1, lb_1], [2, lb_2], [4, lb_4], [1, lb_1], [2, lb_2], [1, lb_1], [3, lb_3]],
76 "targets": [[3, lb_3], [4, lb_4], [5, lb_5], [7, lb(7)], [9, lb(9)], [10, lb(10)]],
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 pound: %1")
80 },
81 {
82 "masses": [[32, oz(32)], [80, lb_5], [16, oz(16)], [64, lb_4], [32, lb_2], [16, lb_1]],
83 "targets": [[96, lb(6)], [64, lb_4], [32, lb_2],[80, lb_5],[128, lb(8)], [160, 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 ounce: %1")
87 },
88 ]
89 }