Debian Codegraph @

src/activities/scalesboard_weight_avoirdupois/resource/2/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 ounces.")
14 difficulty: 2
15
16 function oz(value: int) : string {
17 /* oz == ounce */
18 return qsTr("%1 oz").arg(value)
19 }
20
21 data: [
22 {
23 "masses": [[1, oz(1)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)]],
24 "targets": [[3, oz(3)], [4, oz(4)], [5, oz(5)]],
25 "rightDrop": false,
26 "message": qsTr('The "oz" symbol at the end of a number means ounce. One pound equals sixteen ounces. \n Drop weights on the left side to balance the scales.' )
27 },
28 {
29 "masses": [[1, oz(1)], [2, oz(2)], [2, oz(2)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)]],
30 "targets": [[3, oz(3)], [4, oz(4)], [5, oz(5)],[7, oz(7)],[8, oz(8)], [10, oz(10)],[9, oz(9)]],
31 "rightDrop": false,
32 "message": qsTr("Drop weights on the left side to balance the scales.")
33 },
34 {
35 "masses": [[6, oz(6)], [9, oz(9)], [6, oz(6)], [5, oz(5)], [9, oz(9)], [7, oz(7)], [11, oz(11)]],
36 "targets": [[3, oz(3)], [8, oz(8)], [7, oz(7)],[10, oz(10)]],
37 "message": qsTr("Take care, you can drop weights on both sides of the scales."),
38 "rightDrop": true
39 },
40 {
41 "masses": [[1, oz(1)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)]],
42 "targets": [[4, oz(4)], [1, oz(1)], [5, oz(5)]],
43 "rightDrop": false,
44 "message": qsTr("Now you have to guess the weight of the gift."),
45 "question": qsTr("Enter the weight of the gift in ounce: %1")
46 },
47 {
48 "masses": [[1, oz(1)], [8, oz(8)], [2, oz(2)], [2, oz(2)], [7, oz(7)], [9, oz(9)], [6, oz(6)]],
49 "targets": [[4, oz(4)], [7, oz(7)], [10, oz(10)],[5, oz(5)], [6, oz(6)]],
50 "rightDrop": false,
51 "message": qsTr("Now you have to guess the weight of the gift."),
52 "question": qsTr("Enter the weight of the gift in ounce: %1")
53 }
54 ]
55 }