abedi saleh

abedi saleh

  • NA
  • 1
  • 742

help for java code

May 18 2015 6:48 PM
hello ;  
 i need your help , if it is possible to solve for me
 
 
 
Write a Java project that implements a Flight System (FS) which includes two number of roles.
First one is administrator; second one is passenger who wants to make a reservation for a
flight.
Administrator information with related fields such as username, password, and profile
information will be kept in a file “Administrator.txt” as data storage.
Similarly, passenger information with belonging username and password will also be saved
in a separate file “Passenger.txt” for permanent storage.
You can keep the following example fields for each role shown below:
Passenger Class
Passenger id, Passenger name, Passenger surname, Passenger username, Passenger
password, Departure city, Destination City, Departure hour, Destination hour, Flight date
and Flight price etc.
Administrator Class
Administrator id, Administrator name, Administrator surname, Administrator username,
Administrator password etc.
You are supposed to create at least two classes as: Administrator and Passenger. You should
load appropriate data from data storage files to corresponding objects inside arraylist and
you should update the data storage files after modification of objects which are kept inside
an arraylist during the run-time.
The scenerio of the proposed system is as follows:
When your program runs, first menu should be displayed. This menu should offer 2 choices.
1. Login as administrator
2. Login as passenger
Administrator should do operations given below:
1. Adding a new flight.
2. Removing a flight.
3. Searching a flight.
4. Updating all flight info (except flight id).
5. Displaying all flights’ info in the system.
6. Display all customers which took a reservation for a specific flight
7. Display all information of all customers
Passengers should do operations given below:
1. Buying a flight. (Making reservation)
2. Displaying passenger’s online reservation
3. Updating a reservation for a passenger (update name or surname)
4. Searching for a flight.
5. Displaying all flights info in the system.
6. Cancelling the flight.
Be careful, if a flight is reserved, another passenger can not make a reservation for that
flight.
 

Answers (1)