class ex50{
double[][] m4=new double[100][100];
double[][] f4=new double[100][100];
double[][] m5=new double[100][100];
double[][] f5=new double[100][100];
int[][] m61=new int[100][100];
int[][] f61=new int[100][100];
int[][] m71=new int[100][100];
int[][] f71=new int[100][100];
int[][] m41=new int[100][100];
int[][] f41=new int[100][100];
int[][] m51=new int[100][100];
int[][] f51=new int[100][100];
int[][] m81=new int[100][100];
int[][] f81=new int[100][100];
int[][] m91=new int[100][100];
int[][] f91=new int[100][100];
int z1,z2;
int year,age;
void makedata(String file){
data09 sub2=new data09();
sub2.makedata();
m41=sub2.m4;
m51=sub2.m5;
m61=sub2.m6;
m71=sub2.m7;
m81=sub2.m8;
m91=sub2.m9;
f41=sub2.f4;
f51=sub2.f5;
f61=sub2.f6;
f71=sub2.f7;
f81=sub2.f8;
f91=sub2.f9;
ex09 sub=new ex09();
sub.makedata(file);
m4=sub.m4;
f4=sub.f4;
for(year=10;year<100;year++){
for(age=20;age<60;age++){
z1=m51[year][age]+m71[year][age]+m91[year][age];
z2=f41[year][age]+f61[year][age]+f81[year][age];
if(z2>0)m5[year][age]=f4[year][age]*(double)z1/z2;
z1=f51[year][age]+f71[year][age]+f91[year][age];
z2=m41[year][age]+m61[year][age]+m81[year][age];
if(z2>0)f5[year][age]=m4[year][age]*(double)z1/z2;
}
}
}
}
最終更新:2011年09月18日 14:18