Let assume there are totally A people in NSW, And Pn stand for percentage of people who take n shoot of vacation. And Tn stand for how many people is counted with n shoot. . 1point 3acres
So, for each group of people. The percentage PSn= Tn/(A*Pn)
If we want to know the ration between 0 shoot to 1 shoot, we can use PS0/PS1 = T0*P1/(T1*P0)
Based on this, we have:. check 1point3acres for more.
public class Test1 {
public double getRatio(double cases1, double vPercentage1, double cases2, double vPercentage2) {
return cases1 * vPercentage2 / cases2 / vPercentage1;. From 1point 3acres bbs
}
public static void main(String[] args) {
double[] totalCase = new double[] { 72772.0, 5521.0, 438255.0, 23782.0 };
double[] HospitalCase = new double[] { 822.0, 150.0, 5137.0, 366.0 };
double[] ICUCase = new double[] { 93.0, 19.0, 439.0, 31.0 };. .и
double[] DeathCase = new double[] { 98.0, 14.0, 4287.0, 22.0 };.1point3acres
double[] vaccinPercentage = new double[] { 4.4, 95.6 - 94.2, 94.2 - 49.1, 49.1 };
val q = new Test1();
for (int i = 1; i < 4; i++) {
System.out.println("================================================================================");
System.out.println(String.format("Total Case: %f",.google и
q.getRatio(totalCase[0], vaccinPercentage[0], totalCase[i], vaccinPercentage[i])));
System.out.println(String.format("Hospital Case: %f",
q.getRatio(HospitalCase[0], vaccinPercentage[0], HospitalCase[i], vaccinPercentage[i])));
System.out.println(String.format("ICU Case: %f",
q.getRatio(ICUCase[0], vaccinPercentage[0], ICUCase[i], vaccinPercentage[i])));
System.out.println(String.format("Death Case: %f",
q.getRatio(DeathCase[0], vaccinPercentage[0], DeathCase[i], vaccinPercentage[i])));
System.out.println("================================================================================");
}.--
}
}
and the output
================================================================================
Total Case: 4.193937
Hospital Case: 1.743636
ICU Case: 1.557416. 1point 3acres
Death Case: 2.227273
================================================================================
================================================================================
Total Case: 1.702007
Hospital Case: 1.640160
ICU Case: 2.171412
Death Case: 0.234313
================================================================================
================================================================================
Total Case: 34.146386
Hospital Case: 25.062221
ICU Case: 33.477273. Χ
Death Case: 49.708678.1point3acres
================================================================================
Looks like take 3 shoot is very helpful.
. 1point 3acres
|