본문 바로가기
Programming

Corona virus(COVID-19) in US with Java

by WelcomeBro 2020. 5. 27.
반응형

Hey global~!

 

World will beat Corona Virus! Cheer up! World!

 

Comment anything I will tell u the secret!

2020-05-27
World total confirmed : 5588299.0
US total confirmed : 1680625.0
Total confirmed without US  : 3907674.0
US confirmed/World confirmed  : 30.07%
Total confirmed without US/World confirmed : 69.93%
Global Deaths : 350423.0
US Deaths : 98902.0
Global Deaths without US : 251521.0
Death rate of US : 5.88%
Death rate of Global without US : 6.44%
Death rate of Global : 6.27%

Numbers are from https://coronavirus.jhu.edu/map.html

 

COVID-19 Map

Coronavirus COVID-19 Global Cases by the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University (JHU)

coronavirus.jhu.edu

U can use this code whatever u want

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
public class CoronaVirus {
 
    public static void main(String[] args) {
        double totalConfirmed = 5588299.0;
        double totalConfirmedUS = 1680625.0;
        double totalConfirmedWithoutUS = totalConfirmed-totalConfirmedUS;
        double totalDeath = 350423.0;
        double totalDeathUS = 98902.0;
        double totalDeathWithoutUS = totalDeath-totalDeathUS;
        System.out.println("2020-05-27");
        System.out.println("World total confirmed : "+totalConfirmed);
        System.out.println("US total confirmed : "+totalConfirmedUS);
        System.out.println("Total confirmed without US  : "+totalConfirmedWithoutUS);
        System.out.println("US confirmed/World confirmed  : "+String.format("%,.2f", (totalConfirmedUS/totalConfirmed)*100)+"%");
        System.out.println("Total confirmed without US/World confirmed : "+String.format("%,.2f", (totalConfirmedWithoutUS/totalConfirmed)*100)+"%");
        System.out.println("Global Deaths : "+totalDeath);
        System.out.println("US Deaths : "+totalDeathUS);
        System.out.println("Global Deaths without US : "+totalDeathWithoutUS);
        System.out.println("Death rate of US : "+String.format("%,.2f", (totalDeathUS/totalConfirmedUS)*100)+"%");
        System.out.println("Death rate of Global without US : "+String.format("%,.2f", (totalDeathWithoutUS/totalConfirmedWithoutUS)*100)+"%");
        System.out.println("Death rate of Global : "+String.format("%,.2f", (totalDeath/totalConfirmed)*100)+"%");
    }
}
cs

 

반응형