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

Zamknięty Opublikowano Apr 29, 2014 Płatność przy odbiorze
Zamknięty 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.

Java JavaFX JavaScript Architektura oprogramowania Tworzenie oprogramowania

Numer ID Projektu: #5874787

O projekcie

23 ofert Zdalny projekt Aktywny Jun 5, 2014

23 freelancerów złożyło ofertę za $201 w tym projekcie

theincredible

Hello there, I am the best java developer here, just award me the project and consider it done. Thanks and regards, Yasser

$260 USD w ciągu 1 dnia
(88 Oceny)
6.2
gkan1234

Hi I have 5+ years experience in Java. I have completed more than 80 projects so far. There is no need to pay more than 100$ for this project. I am bidding the amount which is appropriate and I can do this one. Plea Więcej

$70 USD w ciągu 1 dnia
(91 Oceny)
5.4
cijagani

I am specialize in C++,C#.net,ASP.Net,JAVA, PHP, MySQL, Wordpress, e-commerce websites and portals, payment gateways and customized web based applications. my aim to deliver quality products to our customers within spe Więcej

$252 USD w ciągu 8 dni
(15 Oceny)
4.5
SuiGenSolutions

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

$200 USD w ciągu 5 dni
(5 Oceny)
4.1
innovativementis

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

$222 USD w ciągu 3 dni
(8 Oceny)
3.6
taimsolution

A proposal has not yet been provided

$147 USD w ciągu 3 dni
(5 Oceny)
3.6
teufel13

Hi, I have been working in Java for the last 4 years. I would like to help you with your project, and provide a clean, documented and professional code. After the project is done, I will assist you with any of your Więcej

$60 USD w ciągu 2 dni
(8 Oceny)
3.5
umarbsse

HI I can do that prorject within 1-3 days more details in pm................................................

$50 USD w ciągu 3 dni
(5 Oceny)
3.3
TMTCManoj

Hi, We have people with expertise in JAVA. We always provide quality work as well as meet our deadlines as you can see from feedback reviews from other clients. We have already developed many applications on JAVA lik Więcej

$50 USD w ciągu 3 dni
(4 Oceny)
2.6
cungthehung

Hi. I can code it for you with that price. Certainly i satisfy your requirement. Hope we have a deal. Thank you!

$66 USD w ciągu 4 dni
(6 Oceny)
2.6
aleksamarkoni

Expert in java, ready to work right now, just one question, how complex GUI needs to be? Best regards, Aleksandar Markovic.

$100 USD w ciągu 2 dni
(3 Oceny)
2.2
BlackmarkTech

See portfolio for some previous work .....Your project will be with good work..........................

$333 USD w ciągu 15 dni
(3 Oceny)
1.9
ahmedray

A proposal has not yet been provided

$45 USD w ciągu 3 dni
(3 Oceny)
1.7
poginato

Hi I am a expert software developer/architect having over all 08 years of experience in software design, architecture, integration and development. I can give you the quality work that most of the other people could Więcej

$200 USD w ciągu 20 dni
(4 Oceny)
1.5
CydiaSolutions

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

$98 USD w ciągu 3 dni
(1 Ocena)
1.1
marcovincentong

i only use Java SE. I'm thinking its a SE project not ME or EE. i can do it for 2 days :) thanks ..............

$166 USD w ciągu 2 dni
(0 Oceny)
0.0
zhangming12

A proposal has not yet been provided

$1473 USD w ciągu 3 dni
(0 Oceny)
0.0
sibghatullah93

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 :)

$222 USD w ciągu 3 dni
(0 Oceny)
0.0
goldmerridew

I have lots of experience with reading in arbitrary data from am txt file, It's like all I did in University

$211 USD w ciągu 3 dni
(0 Oceny)
0.0
presip

I have gone through your requirement. Its very clear and precise. You need to read the data from 2 files provided (state file and border file). Organize the data, and implement the appropriate methods you have mentione Więcej

$100 USD w ciągu 2 dni
(0 Oceny)
0.0