PROGRAMMING ASSIGNMENT 1
Due dates:
- Program Specifications & Header files - January 31, 1997 (10 pts)
- Object .CPP files - February 7, 1997 (10 pts)
- Entire Program (disk and printout) - February 14, 1997 (20 pts)
Airline Seat Reservation System
SOTPA(Seat Of The Pants) Airlines is about to start a daily flight service between Las Vegas, NM and Las Vegas, NV. You've been contracted to provide a very simple computerized seat reservation system. You've discussed the system with SOTPA officials, and as a result you've drawn up the following outline description of what the company requires of the software.
- Create a seat plan for a flight.
- Set the size of the flight in terms of rows of seats on a plane and the size of a row. For all of SOTPA's current planes, the rows contain an equal number of seats. After the size has been set, all seats are marked as being unoccupied.
- Reserve a seat, specifying row and seat number and some passenger information:
- the rows in a plane are numbered from the front starting at 1;
- the seats are numbered by consecutive letters from the left-hand side, starting with "A";
- the passenger information consists of a surname and initials.
- Release a seat, specifying a row and seat number.
- Find the first available seat. If a customer doesn't want the seat found, the next available seat needs to be found.
- Indicate the number of seats occupied on a flight.
- Indicate the number of free seats left on a flight.
- Provide the information concerning a specified seat -- whether it's occupied or not, and if occupied, the passenger information.
Your final program will be graded according to the following criteria:
- 20% - executes without errors
- 20% - output is correct
- 15% - output is designed appropriately
- 20% - design of the program logic
- 15% - follow programming standards (review the programming style sheet)
- 10% - documentation (good comments)