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