| |
|
|
Job Summary:
|
| |
| Job Type: |
Project |
| Budget: |
$ 20-100 |
| Required
Skills: |
,
|
| Attached
Files: |
1.doc
|
| |
|
| Status: |
Work Performed (selected user TechnoVilla)
|
| |
|
|
|
Buyer Summary:
|
| |
| Username: |
|
| Feedback Score: |
        
11
reviews
|
| Award Reliability: |
14 posted 9 paid |
| |
|
| Location: |
Shenzhen, China
|
| Member Since: |
October 4, 2007 |
| |
|
|
|
| Invited Users: |
There are no invited users
|
Description
DESCRIPTION In this individual assignment, you will create a Java program to allow users look up scheduled flights between two given cities and choose the one that suits best their needs in terms of time, fares, length of trip. Flights depart a city at a certain time, on certain days of the week, and arrive at a specific time at the destination city. For each flight, you will determine rules for calculating three or more different fares: (1) the basic full fare, (2) and a range of available decreasing fares depending on various factors that you will determine, for instance, a 2 week advance purchase fare is 50% off, a one week advance fare is 20%, some days of the week might be 10% more expensive and so on. In addition some of these fares will have a quota. You must explain your rationale in your code (as comments in the relevant methods). TASKS Compulsory functionalities Your program MUST provide ALL the following services: ©© User enquiry input: allow the user enter the departure city, the destination city, the desired date and time ©© Display all the flights and corresponding fares available: o The flight information should include the flight number, the date and arrival times, the distance of the trip. o Only the applicable fares should be displayed (i.e. do not display a 2 week advance fare for a request for a flight in one week time) ©© Sort the retrieval results according to user’s requirements, such as: o price (best to more expensive) o departure time (increasing) o travel time (shortest to longest) o best compromise price/travel time (you will create your own way of calculating this compromise and explain it in the method comments) ©© Save the resulting data to an output file At least one additional feature Your program should also offer at least one additional feature, which you choose from the given list as blow: ©© Handle time differences: eg Perth is 3 hours behind Sydney, so you need to adjust the calculation of the travel times accordingly. ©© Handle bills: as the user “books” flights, the costs are added up to the bill. To make it more interesting, assume that users shop for more than one flight. ©© Handle user accounts: rather than having one unique default user, the user can login or your program can ask before each request/flight booking the name of the user.
DATA FORMAT The data (the information about the flights) needs to be read from an input file. The format of the input file is as below: ©© Each record has information about a flight. There are 7 fields: 1. flightNo in the form of a string all on one line 2. departure city in the form of a string all on one line 3. destination city in the form of a string all on one line 4. departure time which must be a valid time with several integers separated by characters of colon, comma and forward slashes, like: hh:mm, dd/mm/yy. You may ignore any leading zeroes. 5. arrival time in the form of hh:mm, dd/mm/yy 6. distance in the form of an integer number 7. raw fares in the form of a floating-point number ©© All fields are to be separated by whitespace, such as tabs or spaces ©© Every record has all these fields and all these fields always have the same order ©© Records are separated by blank lines Example: here is a sample file called "sample1.txt" flightNo AIR000 departure city Sydney destination city Perth departure time 15:30, 21/08/08 arrival time 17:30, 21/08/08 distance 1300 raw fares 123.40 You need to do systematic testing of the classes you create, and submit the test classes along with your code. For one (non-trivial) class you will need to provide a unit testing report (~1 page) summarising the results of your tests. IMPORTANT NOTES -- Your code MUST make use of at least one collection (ArrayList, LinkedList or primitive array).
Reminder
You may not start working in this and any request before
your bid is accepted. Users who violate this policy
may have their accounts permanently suspended.
|
|
|
|
| |
| Get the Free
Step-by-Step Guide on How to Use GetACoder |
The act of
outsourcing jobs has become easy in the past few years
thanks to GetACoder. However, our team aims at making the
whole process even easier. So, it has now come the time to
provide you with a step-by-step guidance on how to use this
service and succeed in the outsourcing world totally for
FREE.
It doesn't matter if you are a more experienced user or a
novice; using GetACoder will become even simpler with the
help of this E-book. There are two major sections: a Buyers
section and a Coders section.
Buyers will learn:
- How to outsource safely
- How to pick the best freelancers
- How to manage time and money
Coders will learn:
- How to get the best jobs
- How to secure their payments
- How to build a long-lasting relationship with buyers
...and MUCH MORE
Clear examples and pictures illustrating key situations,
great tips and real testimonies of some of our best users...
all in this Outsourcing Guide. So don't loose the
outstanding opportunity to download GetACoder FREE E-book.
|

 |
|
GetACoder is a leading Global Services Marketplace doing business in more than 200 countries. Our unique system accelerates your time to market and provides your business with key competitive advantages. When you use GetACoder you are stretching your budget and saving as much as 60% over traditional outsourcing. GetACoder is changing business, now it's no longer about what you own or build but which resources and talent you can access. With GetACoder you reduce expenses, increase efficiencies, aggressively grow your business, and create a sustainable competitive advantage. GetACoder makes outsourcing to any part of the world an easy task! With GetACoder it's simple to outsource any business request, gain access to global talent and manage jobs online. One of the main advantages of GetACoder is the low labor cost. The typically rates are about seven times lower than the ones in the US or Europe. Posting a request at GetACoder allows the right professional or company to find you and to bid for your work. We are building a reputation for exceeding our customers' expectations and for becoming an extremely cost effective way to outsource work. Use GetACoder when you want to save money, increase efficiency or accelerate the development of your request. With GetACoder you focus on growing your business and let others do the tedious work. Post your request on GetACoder for free. Find out why people outsource jobs with us day after day. Thousands of Satisfied Customers - Submit/View Quotes
| - | It is very easy to get business. The most professional and targeted freelance website. - | | - | We have been getting a lot of projects on GetACoder, which is a well-planned, very friendly website offering projects in every domain, with a nice,
efficient bidding and messaging system, Escrow and release payments which
secures both the clients & solution providers. - | | - | We view GetACoder as an opportunity to provide a global exposure to our knowledge and experience. - |
|
|
| |
© 2004-2012 GetACoder. All rights reserved. |
|