AP Computer Science Question. Plane program.?

Posted by lieguy on 14 December 2010

I will give you the exact assignment. If you feel like helping me out, that is greatly appreciated. If not, that is fine. Here it is:

3. The Fly-by-Night airline company needs a software application that will manage their
reservation system. The airline is new, thus they only have the one plane. The seating
arrangement looks like this:

X X X door X X X X
X X X X X X X

X X X X X X X X bath
X X X X X X X X room

When a passenger is assigned to a seat, they should have the following information:
- Name
- Status ( P=Preferred, R=Regular, C=Child )
The passenger should also have a price ( which is a double ), and a destination. The
flight only goes to Chicago, then on to New York. If you are traveling to Chicago, the
price is 149.00, to New York the price is 249.00. Preferred members get a 15% discount,
children fly for half price.
The program should have the following features.
- Add a new passenger to the plane ( Select seat manually or randomly )
- Remove a passenger from the plane
- Display the current seating chart
- Find a passenger by seat number or name
- Calculate the current total revenue for the flight
- Clear the seating chart when the flight takes off, or is cancelled ( password )
- Save/retrieve data from a file ** bonus/optional
Make sure all methods are robust. They should deal with inappropriate data.


Blogs of Interest


Powered by Yahoo! Answers