Java Script - repost

Closed

Hi i need someone to create a javascript in BlueJ containing the following

1. Create a new project in BlueJ called Assignment1. All classes for the assignment are to be

saved in this project.

2. Create the required classes for the project - there should be at least three (3) classes:

OzCharter, Flight and Passenger. You can have any number of additional classes you think

are required.

3. Class basics:

OzCharter – this class has a maximum of 3 flights, a company name, a company URL (web

address), and a counter for the number of flights that currently exist

Flight – a flight has a maximum of 4 passengers, a flight number (1 to 3), an origin, a

destination, a seat price, departure time and arrival time (as int), a counter for the number

of passengers currently booked on the flight

Passenger – a passenger has an id, name, email, gender, amount of money to spend (or

credit), an is adult status (true or false) a booked status (true if booked on a flight) and a

paid status (true if the flight has been paid for)

4. Constructors: all classes must have at least 1 constructor. The alternate constructor must

initialise the class attributes (done in the body of the constructor).

5. StartUp: when the program first starts, there should be 3 flights created in OzCharter, so

that passengers can view and select these.

Functionality:

The user of OzCharter must be able to:

- Add a passenger

- Search for a flight

- Search for a passenger

- View a list of all flights

- Book a passenger onto a flight

- Pay for a flight

- View a list of passengers on a flight

Detailed Functionality:

1. Add a passenger

Passengers are added to the system before they can book a flight. The program must be

able to add passengers to OzCharter, up to a maximum of 6 passengers. The passenger

ID’s are 1 up to 6, passenger 1 is added first, then passenger 2 etc.

2. Display all flights

When a user selects to view all flights, display a list of all flights that currently exist

(maximum of 3). Details should include flight number, origin and destination airport, number

of passengers currently booked on the flight, departure and arrival time, and the seat price.

3. Search for a flight

A user can search for a flight by flight number, origin airport or destination airport. If any

flight matches the criteria entered, display all details of the flight. If no matching flight was

found, display an error message.

4. Search for a passenger

A user can search for a passenger by ID or email address. If any passenger matches the

criteria entered, display all details of the passenger. If no matching passenger was found,

display an error message.

5. Book a flight

A user can book a passenger on a flight. The passenger must already be created in the

system and their booking status must be false (not already booked on a flight). If they are

not in the system, or already booked on a flight, then an error is displayed. The user must

enter the flight number. If the flight number exists and the flight is not full, the passenger is

added to the flight. The booked status of the passenger is set to true (passengers can only

be booked onto 1 flight) and the paid status of the passenger is set to false. The total

number of passengers booked on the flight is also incremented.

6. Pay for a flight

A user can pay for a flight. When payment is processed successfully the price of the flight is

deducted from the amount of money a passenger has, and the paid status of the passenger

is set to true. If the passenger does not have enough money, the paid status remains as

false and an error message is displayed.

7. View a list of passengers on a flight

When a user selects to view all passengers on a flight, display a list of all passengers

booked on the flight (maximum is 4). Details should include passenger ID, name, email and

gender.

Skills: PHP, Software Architecture

See more: web search web search basics, search for a destination or search the web, does c have classes, seat script, javascript java, flight search, booking system java, list adult email address, flight program, create full program java, java script project, java project classes, startup java, bluej program airport, java address book, java assignment repost, passengers added system can book flight java, search name java, java program classes, book assignment project, flight booking search script, flight search java, class email message, flight repost, program flight system

Project ID: #5079869

7 freelancers are bidding on average $22/hour for this job

qualifiedcoders

Hi, I have read your requirements and would like to discuss things further as we have in depth experience in Javascripting using Jquery, Jquery Mobile, EXT-JS, Sencha, Mobile.js and Dojo etc. Check Latest Mobile More

$20 AUD / hour
(21 Reviews)
7.3
rajeshsonisl

Hello, With 99% completion rate, 650+ successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 !!)... you can never go wrong choosing me :) I look forward to your reply. More

$41 AUD / hour
(436 Reviews)
7.2
bistanil98

We have a team of professionals,they have more than 11 year of experience,so we can manage this work and will give you quality solution we can start this project as soon as possible.to check our work have a look on More

$15 AUD / hour
(16 Reviews)
5.5
it2051229

Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my Java skills. I am focused mostly on doing computer science homework here in freelancer.com and I would like More

$16 AUD / hour
(71 Reviews)
5.4
icodingtechno

Hello, Pleased to see your project posting. I've gone through your project details and hereby I'm outlining my understanding about your project: ============== Project title: Java Script Concept: - Create a new More

$25 AUD / hour
(3 Reviews)
5.3
webdevit

cms/html/php/javascript team,cms/html/php/javascript team,cms/html/php/javascript team,cms/html/php/javascript team,cms/html/php/javascript team,cms/html/php/javascript team,cms/html/php/javascript team,cms/html More

$20 AUD / hour
(5 Reviews)
2.5
nghilq

I can do this job. I am strong in PHP developing. I will release high quality products on time. Thanks.

$16 AUD / hour
(0 Reviews)
0.0