File indexing completed on 2024-05-05 15:53:06
0001 /* GCompris - find_the_day_dataset.js 0002 * 0003 * SPDX-FileCopyrightText: 2018 Amit Sagtani <asagtani06@gmail.com> 0004 * 0005 * SPDX-License-Identifier: GPL-3.0-or-later 0006 */ 0007 0008 // Contains the questions, answers and calendar configurations of every level. 0009 // Add more levels by inserting questions and answers below. 0010 // Days of weeks are indexed from 0 i.e (Sunday = 0, Monday = 1, Tuesday = 2, .... ..... .... , Saturday = 6) 0011 // Months of year are indexed from 0 i.e (January = 0, February = 1, March = 2, .... ..... ...., December = 11) 0012 0013 //MODES 0014 // findMonthOnly --> For questions based on finding month only. 0015 // findYearMonthDay --> For questions based on finding year, month and day. 0016 // findDayOfWeek --> For questions based on finding day of week only. 0017 // findDay --> For questions based on finding day of a given month and year. 0018 0019 0020 function get() { 0021 return [ 0022 [ // Level 1 0023 [ // Level 1 Configurations 0024 { 0025 "navigationBarVisible" : true, 0026 "minimumDate": "2018-01-01", 0027 "maximumDate": "2018-12-31", 0028 "visibleMonth": 7, 0029 "visibleYear": 2018, 0030 "mode": "findYearMonthDay" 0031 } 0032 ], 0033 [ // Level 1 Questions 0034 { 0035 "question": qsTr("Find the date 13 days after May 3rd."), 0036 "answer": {"year": 2018, "month": 4, "day": 16} 0037 }, 0038 { 0039 "question": qsTr("Find the date 7 days after October 1st."), 0040 "answer": {"year": 2018, "month": 9, "day": 8} 0041 }, 0042 { 0043 "question": qsTr("Find the date 31 days after July 12th."), 0044 "answer": {"year": 2018, "month": 7, "day": 12} 0045 }, 0046 { 0047 "question": qsTr("Find the date two weeks after November 27th."), 0048 "answer": {"year": 2018, "month": 11, "day": 11} 0049 }, 0050 { 0051 "question": qsTr("Find the date 19 days before September 1st."), 0052 "answer": {"year": 2018, "month": 7, "day": 13} 0053 }, 0054 { 0055 "question": qsTr("Find the date 5 days before December 8th."), 0056 "answer": {"year": 2018, "month": 11, "day": 3} 0057 } 0058 ] 0059 0060 ], 0061 0062 [ // Level 2 0063 [ // Level 2 Configurations 0064 { 0065 "navigationBarVisible" : true, 0066 "minimumDate": "2018-01-01", 0067 "maximumDate": "2018-12-31", 0068 "visibleMonth": 7, 0069 "visibleYear": 2018, 0070 "mode": "findDayOfWeek" 0071 } 0072 ], 0073 [ // Level 2 Questions 0074 { 0075 "question": qsTr("Find the day of the week 3 days after December 5th."), 0076 "answer": {"dayOfWeek": 6} 0077 }, 0078 { 0079 "question": qsTr("Find the day of the week 12 days before November 12th."), 0080 "answer": {"dayOfWeek": 3} 0081 }, 0082 { 0083 "question": qsTr("Find the day of the week 32 days after January 5th."), 0084 "answer": {"dayOfWeek": 2} 0085 }, 0086 { 0087 "question": qsTr("Find the day of the week 5 days after February 23rd."), 0088 "answer": {"dayOfWeek": 3} 0089 }, 0090 { 0091 "question": qsTr("Find the day of the week 17 days before August 16th."), 0092 "answer": {"dayOfWeek": 1} 0093 } 0094 0095 ] 0096 ], 0097 0098 [ // Level 3 0099 [ // Level 3 configurations 0100 { 0101 "navigationBarVisible": true, 0102 "minimumDate": "2018-01-01", 0103 "maximumDate": "2018-12-31", 0104 "visibleMonth": 7, 0105 "visibleYear": 2018, 0106 "mode": "findYearMonthDay" 0107 } 0108 ], 0109 0110 [ // Level 3 Questions 0111 { 0112 "question": qsTr("Find the date 2 weeks and 3 days after January 12th."), 0113 "answer": {"year": 2018, "month": 0, "day": 29} 0114 }, 0115 { 0116 "question": qsTr("Find the date 3 weeks and 2 days after March 22nd."), 0117 "answer": {"year": 2018, "month": 3, "day": 14} 0118 }, 0119 { 0120 "question": qsTr("Find the date 5 weeks and 6 days after October 5th."), 0121 "answer": {"year": 2018, "month": 10, "day": 15} 0122 }, 0123 { 0124 "question": qsTr("Find the date 1 week and 1 day before August 8th."), 0125 "answer": {"year": 2018, "month": 6, "day": 31} 0126 }, 0127 { 0128 "question": qsTr("Find the date 2 weeks and 5 days before July 2nd."), 0129 "answer": {"year": 2018, "month": 5, "day": 13} 0130 } 0131 0132 ] 0133 ], 0134 0135 [ // level 4 0136 [ // Level 4 Configurations 0137 { 0138 "navigationBarVisible" : true, 0139 "minimumDate": "2018-01-01", 0140 "maximumDate": "2018-12-31", 0141 "visibleMonth": 7, 0142 "visibleYear": 2018, 0143 "mode": "findDayOfWeek" 0144 } 0145 ], 0146 [ // Level 4 Questions 0147 { 0148 "question": qsTr("Find the day of the week 5 months and 2 days after July 3rd."), 0149 "answer": {"dayOfWeek": 3} 0150 }, 0151 { 0152 "question": qsTr("Find the day of the week 2 months and 4 days after October 8th."), 0153 "answer": {"dayOfWeek": 3} 0154 }, 0155 { 0156 "question": qsTr("Find the day of the week 1 month and 3 days before December 28th."), 0157 "answer": {"dayOfWeek": 0} 0158 }, 0159 { 0160 "question": qsTr("Find the day of the week 8 months and 7 days after February 28th."), 0161 "answer": {"dayOfWeek": 0} 0162 }, 0163 { 0164 "question": qsTr("Find the day of the week 3 months and 3 days before September 15th."), 0165 "answer": {"dayOfWeek": 2} 0166 } 0167 ] 0168 ], 0169 0170 [ // level 5 0171 [ // Level 5 Configurations 0172 { 0173 "navigationBarVisible" : true, 0174 "minimumDate": "2018-01-01", 0175 "maximumDate": "2018-12-31", 0176 "visibleMonth": 7, 0177 "visibleYear": 2018, 0178 "mode": "findYearMonthDay" 0179 } 0180 ], 0181 [ // Level 5 Questions 0182 { 0183 "question": qsTr("Find the date 2 months, 1 week and 5 days after January 12th."), 0184 "answer": {"year": 2018, "month": 2, "day": 24} 0185 }, 0186 { 0187 "question": qsTr("Find the date 3 months, 2 weeks and 1 day after August 23rd."), 0188 "answer": {"year": 2018, "month": 11, "day": 8} 0189 }, 0190 { 0191 "question": qsTr("Find the date 5 months, 3 weeks and 2 days after March 20th."), 0192 "answer": {"year": 2018, "month": 8, "day": 12} 0193 }, 0194 { 0195 "question": qsTr("Find the date 1 month 1 week and 1 day before September 10th."), 0196 "answer": {"year": 2018, "month": 7, "day": 2} 0197 }, 0198 { 0199 "question": qsTr("Find the date 2 months, 1 week and 8 days before April 7th."), 0200 "answer": {"year": 2018, "month": 0, "day": 23} 0201 } 0202 ] 0203 ] 0204 ] 0205 }