Write a Java program which analyses information about world countries. All classes are in package world. The code of the world interface and the text files will attached
$30-250 USD
Płatność przy odbiorze
World
Write a Java program which analyses information about world countries. All classes are in package world. The code of the world interface and the text files will attached.
2.1: States
Every state in the world is identified by different attributes: capital town, border states, population and area (in square-meters); develop the following methods:
• addState(String state, String capital, long population, double area) in class World to add a State to the system.
• getCapital(String state) returns a string containing the name of the capital town.
• getPopulation(String state) and getArea(String state) return respectively a long and a double value.
• setBorder(String s1, String s2) tells the system that states s1 and s2 share a border.
R2: Read from File
The method loadData(String statesFile, String borderFile) loads in memory the data structure from 2 files:
• File [url removed, login to view] contains information of each single state in the worlds in the following format "State : capital area population", for example:
Italy : Rome 116,305 58,133,509
Jamaica : Kingston 4,244 2,758,124
Japan : Tokyo 145,882 127,463,611
The area is in kms (square-kilometers) and population in units (official United - Nations in 2007). There can be an arbitrary number of spaces between data in the same line.
• File [url removed, login to view] contains information (incomplete) about borders between some states; each line contains a couple of neighbouring states separated by colon, for example:
Spain : Portugal
Spain : France
Italy :Switzerland
Italy : France
Slovenia: Italy
......
R3: Borders
• Method border(String s1, String s2) returns true if these two states are neighbours, false otherwise.
• Method neighbours(String state) returns the number of neighbours of a given state.
• Method getNeighbours(String state), return the comma-separated list of neighbouring states of a given state, for example: getNeighbours("Italy") returns "France, Switzerland, Austria, Slovenia, Vatican, San Marino". The order in which they are shown does not count.
R4: Statistics
The program will allow calculating some statistics:
• Method populationSort() print on file "[url removed, login to view]" the list of states sorted in decreasing order of population. Each line of this file will contain the position number in the ranking, name and population separated by spaces
1. China 1321851888
2. India 1300000000
• Method areaSort() print on file "[url removed, login to view]" the list of states sorted in decreasing order of area. Each line contains the position number in the ranking, name and area separated by spaces.
R5: GUI
Develop a Graphical User Interface implemented in a different class, relying on the previous methods.
Numer ID Projektu: #5874787
O projekcie
23 freelancerów złożyło ofertę za $201 w tym projekcie
Hello there, I am the best java developer here, just award me the project and consider it done. Thanks and regards, Yasser
Hi, Though we are new to freelancer, have team of developers proficient in web and desktop software development. We have developed many applications in Java, C#, etc. for clients with 100% satisfaction. Our team c Więcej
Hello, I'm interested. I can finish this project in 3 days. If you are interested, please contact me ASAP. I would like to start this immediately. I can do this in any IDE and in any style that you want. Thanks, Więcej
HI I can do that prorject within 1-3 days more details in pm................................................
Hi. I can code it for you with that price. Certainly i satisfy your requirement. Hope we have a deal. Thank you!
Expert in java, ready to work right now, just one question, how complex GUI needs to be? Best regards, Aleksandar Markovic.
See portfolio for some previous work .....Your project will be with good work..........................
Hello, I have done very many assignments similar to this one. I am a teacher aid so not only do I create assignments such as this one, I have to solve them too. Therefore, I have a great understanding of what Więcej
i only use Java SE. I'm thinking its a SE project not ME or EE. i can do it for 2 days :) thanks ..............
hello dude.... i am student of software Engineering... i am quite intrested in your project... its easy for mr i can to it very well..... i am waiting for your reply to start this job.. bye :)
I have lots of experience with reading in arbitrary data from am txt file, It's like all I did in University