Closed

Java Programming in Blue J

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

Would also be nice if you can put instructions as to what each line of code does using //

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: Java, Javascript

See more: blue java, search passengers flight java programming, bluej program airport, passengers added system can book flight java, java blue, java blue code, what is new in java 1.5, what is a class in programming, what are classes in programming, web search web search basics, web programming using java, web programming in java, web programming in c, web programming basics, the basics of programming, search for programming, search for a destination or search the web, programming what is a class, programming money, programming instructions, programming in javascript, programming for money, programming error, programming classes, programming class

About the Employer:
( 7 reviews ) Sydney, Australia

Project ID: #5079881

18 freelancers are bidding on average $118 for this job

IMSeriousBidder

Hello Friend, I am a Java expert ,I can write this Java program for you very quickly, each line will have comment please let me help you Thanks Bing

$176 AUD in 2 days
(100 Reviews)
7.2
eperfections

10+ years Java experience. 500+ projects completed successfully. Ready to start work on your project.

$80 AUD in 3 days
(310 Reviews)
6.9
dobreiiita

Hello, I am Java expert and have previous experience in BlueJ. I have gone through the description and confident to handle this project perfectly. Please let me know if you are interested. Thank You

$150 AUD in 2 days
(199 Reviews)
6.7
msabouri

Hello there, I can help you with your project. I have lots of experience with Java and BlueJ. Please check out my profile for reviews on other similar jobs I've finished. Please contact me if you are interested s More

$89 AUD in 3 days
(52 Reviews)
5.5
nani01029x

I have done some projects in programming. I have strong profile with some positive feedback from students around the world. You can check my profile for more information. Let me help you. I'm ready to get started right More

$80 AUD in 1 day
(55 Reviews)
5.2
Calleus

Hi, I have strong background in JAVA Programming and experience in Algorithms. Let me help you. I am ready to start.

$157 AUD in 3 days
(34 Reviews)
5.0
urmate

Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks

$103 AUD in 3 days
(49 Reviews)
4.9
szymszteinsl

Hi! I am professional C/C++/C#/Java programmer. I can do this project with highest quality. Best Regards, Szymsztein

$144 AUD in 3 days
(15 Reviews)
4.9
cleanCode

Hello, I have read your requirements and my question is : Do you need also a GUI for this homework? I need to know this in order to have a fair bid for you. Regards, Alex

$155 AUD in 3 days
(15 Reviews)
4.6
rakib062

Hi, I am a graduate in CS and working as a Java programmer for 3+ years. I have done lots of assignments both in academic courses and in freelancer.com. I assure you of clean, efficient code with proper comment and do More

$111 AUD in 3 days
(20 Reviews)
4.5
tauitdnmd

Hi. i can do this java assignment in BlueJ for you. please let me help you . I will complete in maximum <=2 days

$177 AUD in 3 days
(14 Reviews)
4.1
pivn

Let expert do this Hello sir, I understood your requirement. Please tell me, do you want a console program or GUI program or web program ? Please tell me more detail and I will do it immediately for you, so yo More

$111 AUD in 1 day
(11 Reviews)
4.1
abhinay18

A proposal has not yet been provided

$70 AUD in 3 days
(11 Reviews)
3.6
vikasneha

I have clearly read and understood your project requirements. I am working as a Team Lead with 6+ years experience. I have excellent expertise in Java and have recently completed several such assignments for many stude More

$111 AUD in 3 days
(1 Review)
1.4
aymaneltawyvw

Hi, Iam Ayman, A professional java developer experienced in deveoping desktop applications and web applications using different frameworks. I can provide a clear structured code. I did work with differnt IDEs like jcre More

$90 AUD in 5 days
(1 Review)
1.0
sudhanathan

hi sir i can do this job i have good tem for our work please give me a chance Thank yoU /..........................

$210 AUD in 5 days
(0 Reviews)
0.0
jeffvincent

Hello, I am eager to work on your project. I know that I could write you a high quality program to meet your needs. Here are a couple of samples of my work: [url removed, login to view] More

$60 AUD in 3 days
(0 Reviews)
0.0
rolancdaniel

I am currently working as a java developer for 3+ years and would love to build my online presence, please accept my application

$55 AUD in 3 days
(0 Reviews)
0.0