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.
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:. Χ
public class Test1 {
public double getRatio(double cases1, double vPercentage1, double cases2, double vPercentage2) {
return cases1 * vPercentage2 / cases2 / vPercentage1;
}. 1point3acres.com
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 };. ----
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",
q.getRatio(totalCase[0], vaccinPercentage[0], totalCase[i], vaccinPercentage[i])));-baidu 1point3acres
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])));. 1point 3 acres
.google и System.out.println("================================================================================");
}
}
}. Χ
and the output
================================================================================
Total Case: 4.193937. Waral dи,
Hospital Case: 1.743636. .и
ICU Case: 1.557416
. 1point3acresDeath Case: 2.227273
================================================================================
================================================================================
Total Case: 1.702007. From 1point 3acres bbs
Hospital Case: 1.640160.1point3acres
ICU Case: 2.171412
Death Case: 0.234313
================================================================================
. Χ================================================================================.1point3acres
Total Case: 34.146386. Waral dи,
Hospital Case: 25.062221
ICU Case: 33.477273
Death Case: 49.708678
================================================================================
Looks like take 3 shoot is very helpful.. 1point 3acres
|