Advertisement
akosiraff

Airline Reservation

Mar 13th, 2014
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/airline-reservation/
  3. Airline Reservation
  4. This program will allow the user to keep track of airline reservations. The program should display
  5. the seating chart for the airplane. It will use an *to indicate a seat is taken and # to indicate the
  6. seat is available. The program will also display a menu which provides the user with several options.
  7. There will be two types of seats in the airplane: first class and coach, each of which will have a different cost.
  8. The program must make use of files, arrays and functions.
  9. The airplane will have 5 rows in the first class section with 4 seats in each row, 2 on each side of
  10. the aisle and 10 rows in the coach section with 3 seats on each side of the aisle. The prices for all
  11. the 1st class seats will be the same. The first 5 rows of the coach will be more expensive than the last
  12. 5 rows. The prices for the seats will be stored in a file called SeatPrices.txt. The program should read
  13. these values from the file and store the values in an array of doubles.
  14. The menu will provide choices to reserve a seat(s) and display the total number of seats sold (indicating
  15. first class and coach), the total number of seats empty in a row, the total number of seats empty in the
  16. plane (indicating first class and coach), and the total amount of sales, in dollars.
  17. Validation: The seat requested by the user is a valid row and seat number. The program should also make sure
  18. that the seat is not already taken.
  19. The program does not need to keep track of which seats were open/taken after closing – every time the program
  20. runs, all the seats start as empty.
  21.  
  22. Download: http://solutionzip.com/downloads/airline-reservation/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement