Skip to content

ASRangel2012/Sorting_Methods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Sorting_Methods

Programming introduces an Interface console, below is the expeted output.

--------------------------------------------------------------------------------
 1.Print all countries
 2.Sort countries by name
 3.Sort countries by happyniess rank
 4.Sort countries by GDP per Capita
 5.Locate and print specific country data
 6.EXIT
 ----------------------------------------------------------------------------------
2
                          Name                 Code              Capitol           Population                  GDP       Happiness Rank
----------------------------------------------------------------------------------------------------------------------------------------------
                   Afghanistan                  AFG                Kabul             37172386      1.9362969582E10                  141
                       Albania                  ALB               Tirana              2866376      1.5058879129E10                  109
                       Austria                  AUT               Vienna              8847037              4.56E11                   13
                    Azerbaijan                  AZE                 Baku              9942334      4.6939529412E10                   85
                       Bahrain                  BHR               Manama              1569439      3.7746196809E10                   41
                    Bangladesh                  BGD                Dhaka            161356039              2.74E11                  110
                       Belarus                  BLR                Minsk              9485386      5.9662495092E10                   67
                       Belgium                  BEL             Brussels             11422068              5.32E11                   17
                        Belize                  BLZ             Belmopan               408487              3.343E9                   50
                        .
                        .
                        .
                       Turkey                   TUR               Ankara             82319724              7.67E11                   69
                  Turkmenistan                  TKM             Ashgabat              5850908      4.0761142857E10                   59
                        Uganda                  UGA              Kampala             42723139      2.7476945526E10                  133
                       Ukraine                  UKR                 Kiev             44622516              1.31E11                  132
          United Arab Emirates                  ARE            Abu Dhabi              9630959              4.14E11                   21
                United Kingdom                  GBR               London             66488991              2.83E12                   19
                 United States                  USA           Washington            327167434              2.05E13                   14
                       Uruguay                  URY           Montevideo              3449299      5.9596885024E10                   28
                    Uzbekistan                  UZB             Tashkent             32955400      5.0499920318E10                   47
                     Venezuela                  VEN              Caracas             28870195            7.6458E10                   82
                       Vietnam                  VNM                Hanoi             95540395              2.45E11                   94
                         Yemen                  YEM                Sanaa             28498687      2.6914402224E10                  146
                        Zambia                  ZMB               Lusaka             17351822      2.6720073436E10                  116
                      Zimbabwe                  ZWE               Harare             14439018      3.1000519447E10                  138
 --------------------------------------------------------------------------------
 1.Print all countries
 2.Sort countries by name
 3.Sort countries by happyniess rank
 4.Sort countries by GDP per Capita
 5.Locate and print specific country data
 6.EXIT
 ----------------------------------------------------------------------------------                

About

pure Java sorting algorithms implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages