Warning, /education/gcompris/src/activities/scalesboard_weight_avoirdupois/resource/1/Data.qml is written in an unsupported language. File is not indexed.

0001 /* GCompris - Data.qml
0002  *
0003  * SPDX-FileCopyrightText: 2020 Deepak Kumar <deepakdk2431@gmail.com>
0004  *
0005  * Authors:
0006  *   Deepak Kumar <deepakdk2431@gmail.com>
0007  *
0008  *   SPDX-License-Identifier: GPL-3.0-or-later
0009  */
0010 import GCompris 1.0
0011 
0012 Data {
0013     objective: qsTr("Balance up to 5 ounces.")
0014     difficulty: 2
0015 
0016     function oz(value) {
0017            /* oz == ounce */
0018            return qsTr("%1 oz").arg(value)
0019        }
0020 
0021     data: [
0022         {
0023             "masses": [[1, oz(1)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)]],
0024             "targets": [[3, oz(3)], [4, oz(4)], [5, oz(5)]],
0025             "rightDrop": false,
0026             "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.' )
0027         },
0028         {
0029             "masses": [[6, oz(6)], [9, oz(9)], [2, oz(2)], [7, oz(7)], [6, oz(6)], [7, oz(7)], [8, oz(8)]],
0030             "targets": [[4, oz(4)], [3, oz(3)], [5, oz(5)]],
0031             "rightDrop": true,
0032             "message": qsTr("Take care, you can drop weights on both sides of the scales."),
0033         },
0034         {
0035             "masses": [[1, oz(1)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)], [1, oz(1)], [2, oz(2)]],
0036             "targets": [[4, oz(4)], [3, oz(3)], [5, oz(5)]],
0037             "rightDrop": false,
0038             "message": qsTr("Now you have to guess the weight of the gift."),
0039             "question": qsTr("Enter the weight of the gift in ounce: %1")
0040         }
0041     ]
0042 }