Up u”NŠñ‚èlŒû„ˆÚ‚Ì—\‘ªv‚ÌŒvŽZƒvƒƒOƒ‰ƒ€ ì¬: 2023-03-06
XV: 2023-03-06


    u”NŠñ‚èlŒû„ˆÚ‚Ì—\‘ªv‚ÌŒvŽZƒvƒƒOƒ‰ƒ€‚ðCˆÈ‰º‚ÉŽ¦‚·B
    Œ¾Œê‚Í PHPB

    /****** 2021”N‚Ì”N—î•ÊlŒû‚ÆŽ€–S—¦ *****************************************/ $i = 0; $population[$i++] = array( "0`4Î", 4306705 ); $population[$i++] = array( "5`9Î", 4958811 ); $population[$i++] = array( "10`14Î", 5293924 ); $population[$i++] = array( "15`19Î", 5507326 ); $population[$i++] = array( "20`24Î", 5889685 ); $population[$i++] = array( "25`29Î", 5950058 ); $population[$i++] = array( "30`34Î", 6204880 ); $population[$i++] = array( "35`39Î", 7084813 ); $population[$i++] = array( "40`44Î", 7953106 ); $population[$i++] = array( "45`49Î", 9545851 ); $population[$i++] = array( "50`54Î", 9078679 ); $population[$i++] = array( "55`59Î", 7688412 ); $population[$i++] = array( "60`64Î", 7298775 ); $population[$i++] = array( "65`69Î", 7799913 ); $population[$i++] = array( "70`74Î", 9620147 ); $population[$i++] = array( "75`79Î", 6678728 ); $population[$i++] = array( "80`84Î", 5540046 ); $population[$i++] = array( "85`89Î", 3859852 ); $population[$i++] = array( "90`94Î", 1900000 ); $population[$i++] = array( "95`99Î", 536000 ); $population[$i++] = array( "100ΈÈã", 85000 ); $population_n = $i; $i = 0; $death[$i++] = array( "0`4Î", 1883 ); $death[$i++] = array( "5`9Î", 330 ); $death[$i++] = array( "10`14Î", 441 ); $death[$i++] = array( "15`19Î", 1204 ); $death[$i++] = array( "20`24Î", 2183 ); $death[$i++] = array( "25`29Î", 2322 ); $death[$i++] = array( "30`34Î", 2863 ); $death[$i++] = array( "35`39Î", 4293 ); $death[$i++] = array( "40`44Î", 7154 ); $death[$i++] = array( "45`49Î", 13677 ); $death[$i++] = array( "50`54Î", 20948 ); $death[$i++] = array( "55`59Î", 27795 ); $death[$i++] = array( "60`64Î", 40094 ); $death[$i++] = array( "65`69Î", 69526 ); $death[$i++] = array( "70`74Î", 135816 ); $death[$i++] = array( "75`79Î", 158871 ); $death[$i++] = array( "80`84Î", 225185 ); $death[$i++] = array( "85`89Î", 292364 ); $death[$i++] = array( "90`94Î", 264183 ); $death[$i++] = array( "95`99Î", 134035 ); $death[$i++] = array( "100ΈÈã", 34262 ); $death_n = $i; /****** 2021”N‚Ì”N—î•ÊlŒû‚ÆŽ€–S—¦‚Ì•\ì¬ *****************************************/ print " <table border=1 cellspacing=0 cellpadding=2> <tr> <td></td> <td align=center>@lŒû@</td> <td align=center>@Ž€–S—¦@</td> </tr>"; $total = 0; $old = 0; for( $i = 0; $i < $death_n; $i++ ){ $class = $population[$i][0]; $population_str = number_format( $population[$i][1] ); $death_ratio[$i] = round( ( $death[$i][1] / $population[$i][1] ), 5 ); $ratio_str = sprintf( "%.5f", $death_ratio[$i] ); $total = $total + $population[$i][1]; if( $i > 13 ){ $old = $old + $population[$i][1]; } print " <tr> <td align=center>".$class."</td> <td align=center>".$population_str."</td> <td align=center>".$ratio_str."</td> </tr>"; } $total = number_format( round( $total, -3) / 1000 ); $old = number_format( round( $old, -3) / 1000 ); $ratio = round( ( $old * 100 / $total ), 1 ); print " </table> <br> <table><tr><td> ‘”F".$total." çl <br>70ΈÈãF".$old." çl <br>”äF".$ratio." “ </td></tr></table> <br>"; ****** 2026`2041”N‚Ì”N—î•ÊlŒû„Œv’l‚Ì•\ì¬ *****************************************/ $population[0] = array( "0`4Î", 4300000 ); $death_ratio[0] = 0.00044; print " <table><tr> "; for( $k= 0; $k < 4; $k++ ){ for( $i = $population_n - 1; $i > 0; $i-- ){ $pop = $population[$i - 1][1]; $ratio = ( $death_ratio[$i - 1] + $death_ratio[$i ] ) / 2; for( $j= 0; $j < 5; $j++ ){ $dead = $pop * $ratio; $pop = $pop - $dead; } $population[$i][1] = $pop; } print " <td> <table border=1 cellspacing=0 cellpadding=2> <tr> <td></td> <td align=center>lŒû<br>(çl)</td> <td align=center>@@</td> </tr>"; $total = 0; $old = 0; for( $i = 0; $i < $death_n; $i++ ){ $class = $population[$i][0]; $pop_str = number_format( round( $population[$i][1], -3) / 1000 ); $total = $total + $population[$i][1]; if( $i > 13 ){ $old = $old + $population[$i][1]; } print " <tr> <td align=center>".$class."</td> <td align=center>".$pop_str."</td> </tr>"; } $total = number_format( round( $total, -3) / 1000 ); $old = number_format( round( $old, -3) / 1000 ); $ratio = round( ( $old * 100 / $total ), 1 ); print " </table> <br> <table><tr><td> ‘”F".$total." çl <br>70ΈÈãF".$old." çl <br>”ä—¦F".$ratio." “ </td></tr></table> </td>"; } print " </tr></table> </center><ul> <br><br>