Warning (2): array_rand() expects parameter 1 to be array, null given [APP/Controller/Component/CommonComponent.php, line 314]Code Context{
$dem_array_trung++;
$value_rand = array_rand($array_system);
$clone = array( 'id' => '4520', 'chart' => '', 'question_id' => '34977', 'clone_type' => '1', 'phpfile' => null, 'clone_symbol' => null, 'clone_content' => 'In a $(cooking) class, $(f1) are $(males) and the <span style="color: #000000;">rest are</span> $(females). After $(n20) $(males) left the class, there are $(f2) as many $(males) as $(females). How many people were there in the $(cooking) class at first?', 'clone_solution_step' => '<table style="height: 88px;" width="641"> <tbody> <tr> <td style="text-align: center;"> </td> <td style="text-align: center;">$(Females)</td> <td style="text-align: center;">$(Males)</td> </tr> <tr> <td style="text-align: center;">Before</td> <td style="text-align: center;"><span style="color: #993300;">$(nn1)</span><sub>x$(l2) </sub>= <br />$(a1) u</td> <td style="text-align: center;"><span style="color: #000000;">$(n3)</span><sub>x$(l2) </sub>= <br />$(b1) u</td> </tr> <tr> <td style="text-align: center;">Change</td> <td style="text-align: center;"> </td> <td style="text-align: center;">- $(n20) </td> </tr> <tr> <td style="text-align: center;">After</td> <td style="text-align: center;"><span style="color: #993300;"> $(n2)</span><sub>x$(l1)</sub> = <br />$(a2) u</td> <td style="text-align: center;"><span style="color: #000000;">$(n1)</span><sub>x$(l1)</sub> = <br />$(b2) u</td> </tr> </tbody> </table> <br />The number of $(females) remains unchanged.<br /><br />Change in the number of $(males) <br />= $(b1) u - $(b2) u<br />= $(gu) u<br /><br />$(gu) u = $(n20)<br />1 u = $(n20) ÷ $(gu) = $(1u)<br /><br />Number of people at first<br />= $(t) u<br />= $(t) x $(1u)<br />= $(n30)<br /><br />Answer(s): $(n30)', 'clone_answer' => '$(n30) ', 'array' => object(stdClass) { 1513407166339 => object(stdClass) {} 1513407176314 => object(stdClass) {} 1513407195491 => object(stdClass) {} 1515729306353 => object(stdClass) {} 1513407214020 => object(stdClass) {} 1517280683500 => object(stdClass) {} }, 'clone_image' => null, 'clone_solution_step_image' => null, 'clone_answer_image' => null, 'status' => true, 'created' => '2017-12-16 15:12:21', 'modified' => '2018-02-21 10:20:26', 'original_question' => 'In a cooking class, <span class="frac"><sup>3</sup><sub>4</sub></span> are males and the rest are female. After 20 males left the class, there are <span class="frac"><sup>1</sup><sub>2</sub></span> as many males as females. How many people were there in the cooking class at first?', 'formula' => array( (int) 0 => 'array_capitalize(2,$(males))=$(Males) ', (int) 1 => 'array_capitalize(2,$(females))=$(Females) ', (int) 2 => 'get_numerator($(f1))=$(n3) ', (int) 3 => 'get_denominator($(f1))=$(n4)', (int) 4 => 'get_numerator($(f2))=$(n1) ', (int) 5 => 'get_denominator($(f2))=$(n2) ', (int) 6 => '$(n4) - $(n3) = $(nn1)', (int) 7 => 'get_lcm($(nn1),$(n2))=$(lcm)', (int) 8 => '$(lcm)/$(n2)=$(l1)', (int) 9 => '$(lcm)/$(nn1)=$(l2)', (int) 10 => '$(nn1)*$(l2) = $(a1)', (int) 11 => '$(n3)*$(l2) = $(b1)', (int) 12 => '$(n2)*$(l1) = $(a2)', (int) 13 => '$(n1)*$(l1) = $(b2)', (int) 14 => '$(b1) - $(b2) = $(gu)', (int) 15 => 'if(more_than($(gu)>1)) continue', (int) 16 => '$(b1) - $(b2) = $(gu)', (int) 17 => '$(1u) * $(gu) = $(n20)', (int) 18 => '$(n4)*$(l2) = $(t)', (int) 19 => '$(t) *$(1u) = $(n30)', (int) 20 => '', (int) 21 => '', (int) 22 => '' ), 'time_value' => array( (int) 0 => '1516176221503', (int) 1 => '1517289208650', (int) 2 => '1513408191396', (int) 3 => '1513407293719', (int) 4 => '1513407309744', (int) 5 => '1513407353111', (int) 6 => '1517280173854', (int) 7 => '1513407368812', (int) 8 => '1513407389481', (int) 9 => '1517242742090', (int) 10 => '1513407390151', (int) 11 => '1513407416432', (int) 12 => '1516529294600', (int) 13 => '1513407453326', (int) 14 => '1513407501591', (int) 15 => '1517282391705', (int) 16 => '1516176727730', (int) 17 => '1513407530992', (int) 18 => '1513407537309', (int) 19 => '1513407563144', (int) 20 => '1513407582419', (int) 21 => '1517221353582', (int) 22 => '1517242460477' ), 'criterion' => array( (int) 0 => '', (int) 1 => '', (int) 2 => '', (int) 3 => '', (int) 4 => '', (int) 5 => '', (int) 6 => '', (int) 7 => '', (int) 8 => '', (int) 9 => '', (int) 10 => '', (int) 11 => '', (int) 12 => '', (int) 13 => '', (int) 14 => '', (int) 15 => '', (int) 16 => '', (int) 17 => '', (int) 18 => '', (int) 19 => '', (int) 20 => '', (int) 21 => '', (int) 22 => '' ), 'type_criterion' => array( (int) 0 => '', (int) 1 => '', (int) 2 => '', (int) 3 => '', (int) 4 => '', (int) 5 => '', (int) 6 => '', (int) 7 => '', (int) 8 => '', (int) 9 => '', (int) 10 => '', (int) 11 => '', (int) 12 => '', (int) 13 => '', (int) 14 => '', (int) 15 => '', (int) 16 => '', (int) 17 => '', (int) 18 => '', (int) 19 => '', (int) 20 => '', (int) 21 => '', (int) 22 => '' ), 'image_gridline' => '', 'code_gridline' => '', 'level' => '', 'topic_id' => '', 'source' => '', 'question_code' => 'P4.FR.JM.17101799-A1', 'tag' => '', 'mark' => '', 'text_working' => '["","","","","","","","","","","","","","","","","","","","","","",""]', 'original_solution' => 'Before<br /> Male : Female<br />3 : 4 - 3<br />3 : 1<br />6 : 2<br /> <br /> After<br /> Male : Female<br />1 : 2<br /> <br /> 6 u - 1 u = 20<br /> 5 u = 20<br /> 1 u = 20 ÷ 5 = 4<br /> <br /> Number of people at first<br /> = 6 u + 2 u<br /> = 8 u <br />= 8 x 4 <br />= 32<br /> <br /> Answer(s): 32', 'delete_by' => null, 'delete_date' => null ) $Array1 = object(Array1) { table => 'array1s' validate => array() useDbConfig => 'default' useTable => 'array1s' id => '77' data => array() schemaName => 'ischoolb_orgi' primaryKey => 'id' validationErrors => array() validationDomain => null tablePrefix => '' plugin => null name => 'Array1' alias => 'Array1' tableToModel => array( 'array1s' => 'Array1' ) cacheQueries => false belongsTo => array() hasOne => array() hasMany => array() hasAndBelongsToMany => array() actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array() cacheSources => true findQueryType => null recursive => (int) 1 order => null virtualFields => array() __backAssociation => array() __backInnerAssociation => array() __backOriginalAssociation => array() __backContainableAssociation => array() __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( 'all' => true, 'first' => true, 'count' => true, 'neighbors' => true, 'list' => true, 'threaded' => true ) [protected] _schema => array( 'id' => array( [maximum depth reached] ), 'name' => array( [maximum depth reached] ), 'content' => array( [maximum depth reached] ), 'note' => array( [maximum depth reached] ), 'created' => array( [maximum depth reached] ), 'modified' => array( [maximum depth reached] ) ) [protected] _associationKeys => array( 'belongsTo' => array( [maximum depth reached] ), 'hasOne' => array( [maximum depth reached] ), 'hasMany' => array( [maximum depth reached] ), 'hasAndBelongsToMany' => array( [maximum depth reached] ) ) [protected] _associations => array( (int) 0 => 'belongsTo', (int) 1 => 'hasOne', (int) 2 => 'hasMany', (int) 3 => 'hasAndBelongsToMany' ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } $Prime = object(AppModel) { useDbConfig => 'default' useTable => 'primes' id => false data => array() schemaName => null table => 'primes' primaryKey => 'id' validate => array() validationErrors => array() validationDomain => null plugin => null name => 'Prime' alias => 'Prime' tableToModel => array( 'primes' => 'Prime' ) cacheQueries => false belongsTo => array() hasOne => array() hasMany => array() hasAndBelongsToMany => array() actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array() cacheSources => true findQueryType => null recursive => (int) 1 order => null virtualFields => array() __backAssociation => array() __backInnerAssociation => array() __backOriginalAssociation => array() __backContainableAssociation => array() __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( 'all' => true, 'first' => true, 'count' => true, 'neighbors' => true, 'list' => true, 'threaded' => true ) [protected] _schema => null [protected] _associationKeys => array( 'belongsTo' => array( [maximum depth reached] ), 'hasOne' => array( [maximum depth reached] ), 'hasMany' => array( [maximum depth reached] ), 'hasAndBelongsToMany' => array( [maximum depth reached] ) ) [protected] _associations => array( (int) 0 => 'belongsTo', (int) 1 => 'hasOne', (int) 2 => 'hasMany', (int) 3 => 'hasAndBelongsToMany' ) [protected] _insertID => null [protected] _sourceConfigured => false [protected] _eventManager => null [protected] _validator => null } $answer_fix = '$(n30) ' $count_crition = (int) 1 $count_array_break = (int) 0 $count_variable_nnt = (int) 0 $message_nnt = '' $field = 'time_value' $array_get = array() $tempt = array( (int) 0 => '1/2', (int) 1 => '1/3', (int) 2 => '1/4', (int) 3 => '1/5', (int) 4 => '2/5', (int) 5 => '3/8', (int) 6 => '3/7' ) $list_name_array = array( (int) 0 => 'females' ) $list_array_item = array( 'males' => array( 'listArray' => array( (int) 0 => 'males', (int) 1 => 'females' ), 'keyArray' => (int) 1, 'manyArray' => '2', 'capitalize' => '2' ) ) $list_italic = array() $array_variable = object(stdClass) { 1513407166339 => object(stdClass) {} 1513407176314 => object(stdClass) {} 1513407195491 => object(stdClass) {} 1515729306353 => object(stdClass) {} 1513407214020 => object(stdClass) {} 1517280683500 => object(stdClass) {} } $question_content = 'In a $(cooking) class, $(f1) are $(males) and the <span style="color: #000000;">rest are</span> $(females). After $(n20) $(males) left the class, there are $(f2) as many $(males) as $(females). How many people were there in the $(cooking) class at first?' $solution_step = '<table style="height: 88px;" width="641"> <tbody> <tr> <td style="text-align: center;"> </td> <td style="text-align: center;">$(Females)</td> <td style="text-align: center;">$(Males)</td> </tr> <tr> <td style="text-align: center;">Before</td> <td style="text-align: center;"><span style="color: #993300;">$(nn1)</span><sub>x$(l2) </sub>= <br />$(a1) u</td> <td style="text-align: center;"><span style="color: #000000;">$(n3)</span><sub>x$(l2) </sub>= <br />$(b1) u</td> </tr> <tr> <td style="text-align: center;">Change</td> <td style="text-align: center;"> </td> <td style="text-align: center;">- $(n20) </td> </tr> <tr> <td style="text-align: center;">After</td> <td style="text-align: center;"><span style="color: #993300;"> $(n2)</span><sub>x$(l1)</sub> = <br />$(a2) u</td> <td style="text-align: center;"><span style="color: #000000;">$(n1)</span><sub>x$(l1)</sub> = <br />$(b2) u</td> </tr> </tbody> </table> <br />The number of $(females) remains unchanged.<br /><br />Change in the number of $(males) <br />= $(b1) u - $(b2) u<br />= $(gu) u<br /><br />$(gu) u = $(n20)<br />1 u = $(n20) ÷ $(gu) = $(1u)<br /><br />Number of people at first<br />= $(t) u<br />= $(t) x $(1u)<br />= $(n30)<br /><br />Answer(s): $(n30)' $clone_answer = '$(n30) ' $formula = array( (int) 0 => 'array_capitalize(2,$(males))=$(Males) ', (int) 1 => 'array_capitalize(2,$(females))=$(Females) ', (int) 2 => 'get_numerator($(f1))=$(n3) ', (int) 3 => 'get_denominator($(f1))=$(n4)', (int) 4 => 'get_numerator($(f2))=$(n1) ', (int) 5 => 'get_denominator($(f2))=$(n2) ', (int) 6 => '$(n4) - $(n3) = $(nn1)', (int) 7 => 'get_lcm($(nn1),$(n2))=$(lcm)', (int) 8 => '$(lcm)/$(n2)=$(l1)', (int) 9 => '$(lcm)/$(nn1)=$(l2)', (int) 10 => '$(nn1)*$(l2) = $(a1)', (int) 11 => '$(n3)*$(l2) = $(b1)', (int) 12 => '$(n2)*$(l1) = $(a2)', (int) 13 => '$(n1)*$(l1) = $(b2)', (int) 14 => '$(b1) - $(b2) = $(gu)', (int) 15 => 'if(more_than($(gu)>1)) continue', (int) 16 => '$(b1) - $(b2) = $(gu)', (int) 17 => '$(1u) * $(gu) = $(n20)', (int) 18 => '$(n4)*$(l2) = $(t)', (int) 19 => '$(t) *$(1u) = $(n30)', (int) 20 => '', (int) 21 => '', (int) 22 => '' ) $formula_1 = array( (int) 0 => 'array_capitalize(2,$(males))=$(Males) ', (int) 1 => 'array_capitalize(2,$(females))=$(Females) ', (int) 2 => 'get_numerator($(f1))=$(n3) ', (int) 3 => 'get_denominator($(f1))=$(n4)', (int) 4 => 'get_numerator($(f2))=$(n1) ', (int) 5 => 'get_denominator($(f2))=$(n2) ', (int) 6 => '$(n4) - $(n3) = $(nn1)', (int) 7 => 'get_lcm($(nn1),$(n2))=$(lcm)', (int) 8 => '$(lcm)/$(n2)=$(l1)', (int) 9 => '$(lcm)/$(nn1)=$(l2)', (int) 10 => '$(nn1)*$(l2) = $(a1)', (int) 11 => '$(n3)*$(l2) = $(b1)', (int) 12 => '$(n2)*$(l1) = $(a2)', (int) 13 => '$(n1)*$(l1) = $(b2)', (int) 14 => '$(b1) - $(b2) = $(gu)', (int) 15 => 'if(more_than($(gu)>1)) continue', (int) 16 => '$(b1) - $(b2) = $(gu)', (int) 17 => '$(1u) * $(gu) = $(n20)', (int) 18 => '$(n4)*$(l2) = $(t)', (int) 19 => '$(t) *$(1u) = $(n30)', (int) 20 => '', (int) 21 => '', (int) 22 => '' ) $criterion = array( (int) 0 => '', (int) 1 => '', (int) 2 => '', (int) 3 => '', (int) 4 => '', (int) 5 => '', (int) 6 => '', (int) 7 => '', (int) 8 => '', (int) 9 => '', (int) 10 => '', (int) 11 => '', (int) 12 => '', (int) 13 => '', (int) 14 => '', (int) 15 => '', (int) 16 => '', (int) 17 => '', (int) 18 => '', (int) 19 => '', (int) 20 => '', (int) 21 => '', (int) 22 => '' ) $type_criterion = array( (int) 0 => '', (int) 1 => '', (int) 2 => '', (int) 3 => '', (int) 4 => '', (int) 5 => '', (int) 6 => '', (int) 7 => '', (int) 8 => '', (int) 9 => '', (int) 10 => '', (int) 11 => '', (int) 12 => '', (int) 13 => '', (int) 14 => '', (int) 15 => '', (int) 16 => '', (int) 17 => '', (int) 18 => '', (int) 19 => '', (int) 20 => '', (int) 21 => '', (int) 22 => '' ) $time_value = array( (int) 0 => '1516176221503', (int) 1 => '1517289208650', (int) 2 => '1513408191396', (int) 3 => '1513407293719', (int) 4 => '1513407309744', (int) 5 => '1513407353111', (int) 6 => '1517280173854', (int) 7 => '1513407368812', (int) 8 => '1513407389481', (int) 9 => '1517242742090', (int) 10 => '1513407390151', (int) 11 => '1513407416432', (int) 12 => '1516529294600', (int) 13 => '1513407453326', (int) 14 => '1513407501591', (int) 15 => '1517282391705', (int) 16 => '1516176727730', (int) 17 => '1513407530992', (int) 18 => '1513407537309', (int) 19 => '1513407563144', (int) 20 => '1513407582419', (int) 21 => '1517221353582', (int) 22 => '1517242460477' ) $k = '1515729306353' $v = object(stdClass) { cate => 'items' name => 'cooking' range => '77' attr => object(stdClass) {} } $array_system = null $dem_array_trung = (int) 1 $value_rand_check = (int) 1 $value_check = 'females' $tempt_k = (int) 6 $tempt_v = '3/7' $result_rand_frac = '1/2' $findme = '/' $search_frac = (int) 1 $frac_show = array( (int) 0 => '1', (int) 1 => '2' ) $reduce_to_lowest = array( (int) 0 => (int) 1, (int) 1 => (int) 2 ) $search_frac_1 = (int) 1 $value_rand_1 = '1/2' $frac_show_1 = array( (int) 0 => '1', (int) 1 => '2' ) $arr_variable = array( 'f1' => '2/5', 'f2' => '1/2', 'males' => 'females' )array_rand - [internal], line ?? CommonComponent::generateAdvClone() - APP/Controller/Component/CommonComponent.php, line 314 ClonesController::index2() - APP/Controller/ClonesController.php, line 2226 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 119
Warning (2): array_rand() expects parameter 1 to be array, null given [APP/Controller/Component/CommonComponent.php, line 314]Code Context{
$dem_array_trung++;
$value_rand = array_rand($array_system);
$clone = array( 'id' => '4520', 'chart' => '', 'question_id' => '34977', 'clone_type' => '1', 'phpfile' => null, 'clone_symbol' => null, 'clone_content' => 'In a $(cooking) class, $(f1) are $(males) and the <span style="color: #000000;">rest are</span> $(females). After $(n20) $(males) left the class, there are $(f2) as many $(males) as $(females). How many people were there in the $(cooking) class at first?', 'clone_solution_step' => '<table style="height: 88px;" width="641"> <tbody> <tr> <td style="text-align: center;"> </td> <td style="text-align: center;">$(Females)</td> <td style="text-align: center;">$(Males)</td> </tr> <tr> <td style="text-align: center;">Before</td> <td style="text-align: center;"><span style="color: #993300;">$(nn1)</span><sub>x$(l2) </sub>= <br />$(a1) u</td> <td style="text-align: center;"><span style="color: #000000;">$(n3)</span><sub>x$(l2) </sub>= <br />$(b1) u</td> </tr> <tr> <td style="text-align: center;">Change</td> <td style="text-align: center;"> </td> <td style="text-align: center;">- $(n20) </td> </tr> <tr> <td style="text-align: center;">After</td> <td style="text-align: center;"><span style="color: #993300;"> $(n2)</span><sub>x$(l1)</sub> = <br />$(a2) u</td> <td style="text-align: center;"><span style="color: #000000;">$(n1)</span><sub>x$(l1)</sub> = <br />$(b2) u</td> </tr> </tbody> </table> <br />The number of $(females) remains unchanged.<br /><br />Change in the number of $(males) <br />= $(b1) u - $(b2) u<br />= $(gu) u<br /><br />$(gu) u = $(n20)<br />1 u = $(n20) ÷ $(gu) = $(1u)<br /><br />Number of people at first<br />= $(t) u<br />= $(t) x $(1u)<br />= $(n30)<br /><br />Answer(s): $(n30)', 'clone_answer' => '$(n30) ', 'array' => object(stdClass) { 1513407166339 => object(stdClass) {} 1513407176314 => object(stdClass) {} 1513407195491 => object(stdClass) {} 1515729306353 => object(stdClass) {} 1513407214020 => object(stdClass) {} 1517280683500 => object(stdClass) {} }, 'clone_image' => null, 'clone_solution_step_image' => null, 'clone_answer_image' => null, 'status' => true, 'created' => '2017-12-16 15:12:21', 'modified' => '2018-02-21 10:20:26', 'original_question' => 'In a cooking class, <span class="frac"><sup>3</sup><sub>4</sub></span> are males and the rest are female. After 20 males left the class, there are <span class="frac"><sup>1</sup><sub>2</sub></span> as many males as females. How many people were there in the cooking class at first?', 'formula' => array( (int) 0 => 'array_capitalize(2,$(males))=$(Males) ', (int) 1 => 'array_capitalize(2,$(females))=$(Females) ', (int) 2 => 'get_numerator($(f1))=$(n3) ', (int) 3 => 'get_denominator($(f1))=$(n4)', (int) 4 => 'get_numerator($(f2))=$(n1) ', (int) 5 => 'get_denominator($(f2))=$(n2) ', (int) 6 => '$(n4) - $(n3) = $(nn1)', (int) 7 => 'get_lcm($(nn1),$(n2))=$(lcm)', (int) 8 => '$(lcm)/$(n2)=$(l1)', (int) 9 => '$(lcm)/$(nn1)=$(l2)', (int) 10 => '$(nn1)*$(l2) = $(a1)', (int) 11 => '$(n3)*$(l2) = $(b1)', (int) 12 => '$(n2)*$(l1) = $(a2)', (int) 13 => '$(n1)*$(l1) = $(b2)', (int) 14 => '$(b1) - $(b2) = $(gu)', (int) 15 => 'if(more_than($(gu)>1)) continue', (int) 16 => '$(b1) - $(b2) = $(gu)', (int) 17 => '$(1u) * $(gu) = $(n20)', (int) 18 => '$(n4)*$(l2) = $(t)', (int) 19 => '$(t) *$(1u) = $(n30)', (int) 20 => '', (int) 21 => '', (int) 22 => '' ), 'time_value' => array( (int) 0 => '1516176221503', (int) 1 => '1517289208650', (int) 2 => '1513408191396', (int) 3 => '1513407293719', (int) 4 => '1513407309744', (int) 5 => '1513407353111', (int) 6 => '1517280173854', (int) 7 => '1513407368812', (int) 8 => '1513407389481', (int) 9 => '1517242742090', (int) 10 => '1513407390151', (int) 11 => '1513407416432', (int) 12 => '1516529294600', (int) 13 => '1513407453326', (int) 14 => '1513407501591', (int) 15 => '1517282391705', (int) 16 => '1516176727730', (int) 17 => '1513407530992', (int) 18 => '1513407537309', (int) 19 => '1513407563144', (int) 20 => '1513407582419', (int) 21 => '1517221353582', (int) 22 => '1517242460477' ), 'criterion' => array( (int) 0 => '', (int) 1 => '', (int) 2 => '', (int) 3 => '', (int) 4 => '', (int) 5 => '', (int) 6 => '', (int) 7 => '', (int) 8 => '', (int) 9 => '', (int) 10 => '', (int) 11 => '', (int) 12 => '', (int) 13 => '', (int) 14 => '', (int) 15 => '', (int) 16 => '', (int) 17 => '', (int) 18 => '', (int) 19 => '', (int) 20 => '', (int) 21 => '', (int) 22 => '' ), 'type_criterion' => array( (int) 0 => '', (int) 1 => '', (int) 2 => '', (int) 3 => '', (int) 4 => '', (int) 5 => '', (int) 6 => '', (int) 7 => '', (int) 8 => '', (int) 9 => '', (int) 10 => '', (int) 11 => '', (int) 12 => '', (int) 13 => '', (int) 14 => '', (int) 15 => '', (int) 16 => '', (int) 17 => '', (int) 18 => '', (int) 19 => '', (int) 20 => '', (int) 21 => '', (int) 22 => '' ), 'image_gridline' => '', 'code_gridline' => '', 'level' => '', 'topic_id' => '', 'source' => '', 'question_code' => 'P4.FR.JM.17101799-A1', 'tag' => '', 'mark' => '', 'text_working' => '["","","","","","","","","","","","","","","","","","","","","","",""]', 'original_solution' => 'Before<br /> Male : Female<br />3 : 4 - 3<br />3 : 1<br />6 : 2<br /> <br /> After<br /> Male : Female<br />1 : 2<br /> <br /> 6 u - 1 u = 20<br /> 5 u = 20<br /> 1 u = 20 ÷ 5 = 4<br /> <br /> Number of people at first<br /> = 6 u + 2 u<br /> = 8 u <br />= 8 x 4 <br />= 32<br /> <br /> Answer(s): 32', 'delete_by' => null, 'delete_date' => null ) $Array1 = object(Array1) { table => 'array1s' validate => array() useDbConfig => 'default' useTable => 'array1s' id => '77' data => array() schemaName => 'ischoolb_orgi' primaryKey => 'id' validationErrors => array() validationDomain => null tablePrefix => '' plugin => null name => 'Array1' alias => 'Array1' tableToModel => array( 'array1s' => 'Array1' ) cacheQueries => false belongsTo => array() hasOne => array() hasMany => array() hasAndBelongsToMany => array() actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array() cacheSources => true findQueryType => null recursive => (int) 1 order => null virtualFields => array() __backAssociation => array() __backInnerAssociation => array() __backOriginalAssociation => array() __backContainableAssociation => array() __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( 'all' => true, 'first' => true, 'count' => true, 'neighbors' => true, 'list' => true, 'threaded' => true ) [protected] _schema => array( 'id' => array( [maximum depth reached] ), 'name' => array( [maximum depth reached] ), 'content' => array( [maximum depth reached] ), 'note' => array( [maximum depth reached] ), 'created' => array( [maximum depth reached] ), 'modified' => array( [maximum depth reached] ) ) [protected] _associationKeys => array( 'belongsTo' => array( [maximum depth reached] ), 'hasOne' => array( [maximum depth reached] ), 'hasMany' => array( [maximum depth reached] ), 'hasAndBelongsToMany' => array( [maximum depth reached] ) ) [protected] _associations => array( (int) 0 => 'belongsTo', (int) 1 => 'hasOne', (int) 2 => 'hasMany', (int) 3 => 'hasAndBelongsToMany' ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } $Prime = object(AppModel) { useDbConfig => 'default' useTable => 'primes' id => false data => array() schemaName => null table => 'primes' primaryKey => 'id' validate => array() validationErrors => array() validationDomain => null plugin => null name => 'Prime' alias => 'Prime' tableToModel => array( 'primes' => 'Prime' ) cacheQueries => false belongsTo => array() hasOne => array() hasMany => array() hasAndBelongsToMany => array() actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array() cacheSources => true findQueryType => null recursive => (int) 1 order => null virtualFields => array() __backAssociation => array() __backInnerAssociation => array() __backOriginalAssociation => array() __backContainableAssociation => array() __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( 'all' => true, 'first' => true, 'count' => true, 'neighbors' => true, 'list' => true, 'threaded' => true ) [protected] _schema => null [protected] _associationKeys => array( 'belongsTo' => array( [maximum depth reached] ), 'hasOne' => array( [maximum depth reached] ), 'hasMany' => array( [maximum depth reached] ), 'hasAndBelongsToMany' => array( [maximum depth reached] ) ) [protected] _associations => array( (int) 0 => 'belongsTo', (int) 1 => 'hasOne', (int) 2 => 'hasMany', (int) 3 => 'hasAndBelongsToMany' ) [protected] _insertID => null [protected] _sourceConfigured => false [protected] _eventManager => null [protected] _validator => null } $answer_fix = '$(n30) ' $count_crition = (int) 2 $count_array_break = (int) 0 $count_variable_nnt = (int) 0 $message_nnt = '' $field = 'time_value' $array_get = array() $tempt = array( (int) 0 => '1/2', (int) 1 => '1/3', (int) 2 => '1/4', (int) 3 => '1/5', (int) 4 => '2/5', (int) 5 => '3/8', (int) 6 => '3/7' ) $list_name_array = array( (int) 0 => 'males' ) $list_array_item = array( 'males' => array( 'listArray' => array( (int) 0 => 'males', (int) 1 => 'females' ), 'keyArray' => (int) 0, 'manyArray' => '2', 'capitalize' => '2' ) ) $list_italic = array() $array_variable = object(stdClass) { 1513407166339 => object(stdClass) {} 1513407176314 => object(stdClass) {} 1513407195491 => object(stdClass) {} 1515729306353 => object(stdClass) {} 1513407214020 => object(stdClass) {} 1517280683500 => object(stdClass) {} } $question_content = 'In a $(cooking) class, $(f1) are $(males) and the <span style="color: #000000;">rest are</span> $(females). After $(n20) $(males) left the class, there are $(f2) as many $(males) as $(females). How many people were there in the $(cooking) class at first?' $solution_step = '<table style="height: 88px;" width="641"> <tbody> <tr> <td style="text-align: center;"> </td> <td style="text-align: center;">$(Females)</td> <td style="text-align: center;">$(Males)</td> </tr> <tr> <td style="text-align: center;">Before</td> <td style="text-align: center;"><span style="color: #993300;">$(nn1)</span><sub>x$(l2) </sub>= <br />$(a1) u</td> <td style="text-align: center;"><span style="color: #000000;">$(n3)</span><sub>x$(l2) </sub>= <br />$(b1) u</td> </tr> <tr> <td style="text-align: center;">Change</td> <td style="text-align: center;"> </td> <td style="text-align: center;">- $(n20) </td> </tr> <tr> <td style="text-align: center;">After</td> <td style="text-align: center;"><span style="color: #993300;"> $(n2)</span><sub>x$(l1)</sub> = <br />$(a2) u</td> <td style="text-align: center;"><span style="color: #000000;">$(n1)</span><sub>x$(l1)</sub> = <br />$(b2) u</td> </tr> </tbody> </table> <br />The number of $(females) remains unchanged.<br /><br />Change in the number of $(males) <br />= $(b1) u - $(b2) u<br />= $(gu) u<br /><br />$(gu) u = $(n20)<br />1 u = $(n20) ÷ $(gu) = $(1u)<br /><br />Number of people at first<br />= $(t) u<br />= $(t) x $(1u)<br />= $(n30)<br /><br />Answer(s): $(n30)' $clone_answer = '$(n30) ' $formula = array( (int) 0 => 'array_capitalize(2,$(males))=$(Males) ', (int) 1 => 'array_capitalize(2,$(females))=$(Females) ', (int) 2 => 'get_numerator($(f1))=$(n3) ', (int) 3 => 'get_denominator($(f1))=$(n4)', (int) 4 => 'get_numerator($(f2))=$(n1) ', (int) 5 => 'get_denominator($(f2))=$(n2) ', (int) 6 => '$(n4) - $(n3) = $(nn1)', (int) 7 => 'get_lcm($(nn1),$(n2))=$(lcm)', (int) 8 => '$(lcm)/$(n2)=$(l1)', (int) 9 => '$(lcm)/$(nn1)=$(l2)', (int) 10 => '$(nn1)*$(l2) = $(a1)', (int) 11 => '$(n3)*$(l2) = $(b1)', (int) 12 => '$(n2)*$(l1) = $(a2)', (int) 13 => '$(n1)*$(l1) = $(b2)', (int) 14 => '$(b1) - $(b2) = $(gu)', (int) 15 => 'if(more_than($(gu)>1)) continue', (int) 16 => '$(b1) - $(b2) = $(gu)', (int) 17 => '$(1u) * $(gu) = $(n20)', (int) 18 => '$(n4)*$(l2) = $(t)', (int) 19 => '$(t) *$(1u) = $(n30)', (int) 20 => '', (int) 21 => '', (int) 22 => '' ) $formula_1 = array( (int) 0 => 'array_capitalize(2,$(males))=$(Males) ', (int) 1 => 'array_capitalize(2,$(females))=$(Females) ', (int) 2 => 'get_numerator($(f1))=$(n3) ', (int) 3 => 'get_denominator($(f1))=$(n4)', (int) 4 => 'get_numerator($(f2))=$(n1) ', (int) 5 => 'get_denominator($(f2))=$(n2) ', (int) 6 => '$(n4) - $(n3) = $(nn1)', (int) 7 => 'get_lcm($(nn1),$(n2))=$(lcm)', (int) 8 => '$(lcm)/$(n2)=$(l1)', (int) 9 => '$(lcm)/$(nn1)=$(l2)', (int) 10 => '$(nn1)*$(l2) = $(a1)', (int) 11 => '$(n3)*$(l2) = $(b1)', (int) 12 => '$(n2)*$(l1) = $(a2)', (int) 13 => '$(n1)*$(l1) = $(b2)', (int) 14 => '$(b1) - $(b2) = $(gu)', (int) 15 => 'if(more_than($(gu)>1)) continue', (int) 16 => '$(b1) - $(b2) = $(gu)', (int) 17 => '$(1u) * $(gu) = $(n20)', (int) 18 => '$(n4)*$(l2) = $(t)', (int) 19 => '$(t) *$(1u) = $(n30)', (int) 20 => '', (int) 21 => '', (int) 22 => '' ) $criterion = array( (int) 0 => '', (int) 1 => '', (int) 2 => '', (int) 3 => '', (int) 4 => '', (int) 5 => '', (int) 6 => '', (int) 7 => '', (int) 8 => '', (int) 9 => '', (int) 10 => '', (int) 11 => '', (int) 12 => '', (int) 13 => '', (int) 14 => '', (int) 15 => '', (int) 16 => '', (int) 17 => '', (int) 18 => '', (int) 19 => '', (int) 20 => '', (int) 21 => '', (int) 22 => '' ) $type_criterion = array( (int) 0 => '', (int) 1 => '', (int) 2 => '', (int) 3 => '', (int) 4 => '', (int) 5 => '', (int) 6 => '', (int) 7 => '', (int) 8 => '', (int) 9 => '', (int) 10 => '', (int) 11 => '', (int) 12 => '', (int) 13 => '', (int) 14 => '', (int) 15 => '', (int) 16 => '', (int) 17 => '', (int) 18 => '', (int) 19 => '', (int) 20 => '', (int) 21 => '', (int) 22 => '' ) $time_value = array( (int) 0 => '1516176221503', (int) 1 => '1517289208650', (int) 2 => '1513408191396', (int) 3 => '1513407293719', (int) 4 => '1513407309744', (int) 5 => '1513407353111', (int) 6 => '1517280173854', (int) 7 => '1513407368812', (int) 8 => '1513407389481', (int) 9 => '1517242742090', (int) 10 => '1513407390151', (int) 11 => '1513407416432', (int) 12 => '1516529294600', (int) 13 => '1513407453326', (int) 14 => '1513407501591', (int) 15 => '1517282391705', (int) 16 => '1516176727730', (int) 17 => '1513407530992', (int) 18 => '1513407537309', (int) 19 => '1513407563144', (int) 20 => '1513407582419', (int) 21 => '1517221353582', (int) 22 => '1517242460477' ) $k = '1515729306353' $v = object(stdClass) { cate => 'items' name => 'cooking' range => '77' attr => object(stdClass) {} } $array_system = null $dem_array_trung = (int) 1 $value_rand_check = (int) 0 $value_check = 'males' $tempt_k = (int) 6 $tempt_v = '3/7' $result_rand_frac = '3/7' $findme = '/' $search_frac = (int) 1 $frac_show = array( (int) 0 => '3', (int) 1 => '7' ) $reduce_to_lowest = array( (int) 0 => (int) 3, (int) 1 => (int) 7 ) $search_frac_1 = (int) 1 $value_rand_1 = '3/7' $frac_show_1 = array( (int) 0 => '3', (int) 1 => '7' ) $check_who_nnt = (int) 0 $from = '2' $to = '20' $formula_v = '' $formula_k = (int) 22 $criterion_v = '' $criterion_k = (int) 22 $type_criterion_v = '' $type_criterion_k = (int) 22 $variable_show = array( 'f1' => '2/5', 'f2' => '1/2', 'males' => 'females', 'cooking' => '', 'females' => 'males', '1u' => (int) 17 ) $variable_v = '1' $variable_k = '(gu)' $array_mixed_nnt = array() $check_changes = '' $start = 'more_than(' $end = ')' $criterion_continue = 'continue' $criterion_back = 'inue' $get_between = 'more_than(1>1)' $bieuthuc = array( (int) 0 => '4-3', (int) 1 => '(gu)' ) $substr_pos = 'change_decimal_to_fraction' $get_numerator = false $get_whole_number_nnt = false $pos = false $substr_simplify_frac = 'simplify_fraction' $simplify_frac = false $substr_simplify_ratio = 'simplify_ratio' $simplify_ratio = false $substr_get_element_of_ratio = 'get_element' $get_element_of_ratio = false $substr_numberto2decimal = 'change_number_to_2dp' $change_to_2dp = false $substr_digit_5_0 = 'change_to_2dp_with_5_or_0' $change_to_2dp_5_or_0 = false $substr_mixed_num = 'change_improper_to_mixed_number' $mixed_num = false $substr_mixed_to_improper = 'change_mixed_number_to_improper' $mixed_to_improper = false $substr_invert_fraction = 'invert_fraction' $invert_fraction = false $substr_get_same_numerator = 'share_same_numerator' $get_same_numerator = false $substr_get_same_denominator = 'share_same_denominator' $get_same_denominator = false $substr_reduce_into_ratio = 'simplify_any_into_ratio' $reduce_into_ratio = false $substr_multiply_subscript = 'multiply_ratio_subscript' $multiply_subscript = false $substr_assign = 'assign' $assign = false $substr_is_12_hour_time_am_pm = 'get_12_hour_time_am_pm' $is_12_hour_time_am_pm = false $substr_is_2400_hour_time = 'get_2400_hour_time' $is_2400_hour_time = false $substr_add_or_minus_time = 'add_or_minus_min_or_s' $add_or_minus_time = false $substr_change_percentage_to_frac = 'change_percentage_to_frac' $change_percentage_to_frac = false $substr_round_2_decimal = 'round_2_decimal_place' $round_2_decimal_place = false $substr_round_1_decimal = 'round_1_decimal_place' $round_1_decimal_place = false $substr_get_quotient = 'get_quotient' $get_quotient = false $substr_get_remainder = 'get_remainder' $get_remainder = false $substr_change_min_to_hour_min = 'change_min_to_h_min' $change_min_to_hour_min = false $substr_change_h_min_to_min = 'change_h_min_to_min' $change_h_min_to_min = false $substr_carry_1 = 'carry_1_from_mixed_number' $get_carry_1 = false $change_d_or_p_to_fraction = 'change_to_unsimplied_fraction' $get_change_d_or_p_to_fraction = false $round_off_to_nearest_ten = 'round_off_to_nearest_ten' $get_round_off_to_nearest_ten = false $round_off_to_nearest_hundred = 'round_off_to_nearest_hundred' $get_round_off_to_nearest_hundred = false $round_off_to_nearest_thousand = 'round_off_to_nearest_thousand' $get_round_off_to_nearest_thousand = false $change_12_to_24 = 'change_12h_to_24h' $get_12_to_24 = false $change_24_to_12 = 'change_24h_to_12h' $get_24_to_12 = false $get_factors = 'get_factors' $get_factors_nnt = false $get_common_factors = 'get_common_factors' $get_common_factors_nnt = false $get_multiples = 'get_multiples' $get_multiples_23916 = false $get_add_or_minus_multiples = 'add_or_minus_multiples' $add_or_minus_multiples_23916 = false $get_common_numbers = 'get_common_numbers' $get_common_numbers_240916 = false $substr_array_singular = 'array_singular' $array_singular_101016 = false $substr_array_plural = 'array_plural' $array_plural_101016 = false $substr_print_fraction = 'print_fraction' $print_fraction_101016 = false $substr_array_capitalize = 'array_capitalize' $array_capitalize_101016 = false $substr_array_get_words = 'array_get_words' $array_get_words_31316 = false $substr_array_get_1st_letter = 'array_get_1st_letter' $array_array_get_1st_letter = false $substr_array_get_next_loop = 'array_get_next_loop' $array_get_next_loop = false $substr_array_get_next_break = 'array_get_next_break' $array_get_next_break = false $substr_multiply_fraction = 'do_fraction' $array_multiply_fraction = false $substr_change_to_italic = 'change_to_italic' $array_change_to_italic = false $giatri = (int) 1 $v1 = '' $k1 = (int) 22 $type_criterion_action = (int) 1 $type_cri = 'more_than' $get_between_value = '1>1' $arr_variable = array( 'f1' => '4/5', 'f2' => '3/7', 'males' => 'males' )array_rand - [internal], line ?? CommonComponent::generateAdvClone() - APP/Controller/Component/CommonComponent.php, line 314 ClonesController::index2() - APP/Controller/ClonesController.php, line 2226 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 119
The reports are available for Premium members only.
Why use limited features when you can enjoy full features and excel in Math?
There’s no risk. Cancel any time.
Let's start my subscription now.
When you click the Next button, you will be given 1-minute grace period to decide whether to do the next question type.
The question will be marked as incorrect if you exceed 1 minute and leave the question page.
Click the Back button instead if you would like to return to the topic page.
Date:28 Jun 2024
Topic:FRACTIONS
Question Number:P4.FR.JM.17101799-A1
Student:
Class:
Level:
School:
A password link has been sent to the Child's Email:
Please click the link to reset the Child's Password.