Assignment 2: Airline Reservation App Due date: Friday, 30 th September 2016 at 1 2 n o o n on BlackBoard. This assignment is worth 10% of your final grade and has 100 marks in total. Brief For this assignment, you will individually develop an Airline Reservation Application in Java enabling airlines to view the seating map of a flight and to make seat reservations in first or economy class, based on their reservation policies. For a given flight, the Airline Reservation Application retrieves its seating map partitioned into first and economy classes as depicted in the left hand side of Figure 1. A seat request marks a seat as reserved. For example, the first class seat 3E is reserved and shown in the left hand side of Figure 1 as a solid circle. This seat is an aisle type of seat, since it is next to an aisle. Similarly, window type seats are next to the aircraft’s windows (such as 5A), and all other seats are middle type seats (such as 9D). Figure 1: Seat map stored as a 2D array of Seat objects Dr. Kenneth Johnson. Auckland University of Technology. Programing 2 Semester 2 2016 1 Airline Reservation Policies Different airlines have different reservation policies if the requested seating is unavailable on a flight. Consider the policies of the following two airlines: SimpleJet 1. Seating Reservations in First Class • Find and reserve a seat in first class that matches the requested seat type • If no such first class seat with the matching type exists, then find and reserve any seat in first class • If there are no seats available in first class then find and reserve a middle or window seat in economy class, also reserving one of the neighboring seats (for extra passenger room) • If there are no seats matching any of these criteria then a reservation cannot be made 2. Seating Reservations in Economy Class • Find and reserve a seat in economy class that matches the requested seat type • If no such economy class seat with the matching type exists, then find and reserve any seat in economy class • If there are no seats matching any of these criteria then a reservation cannot be made RynoAir 1. Seating Reservations in First Class • Find and reserve a seat in first class that matches the requested seat type • If no such first class seat with the matching type exists, then find and reserve any seat in first class • If there are no seats available in first class
About Us
Academhelper.com is a pioneering academic writing service with a customer base comprising of thousands of students. We have hundreds of expert writers aboard working in collaboration with a diligent quality assurance team.
Contact Info
Email: support@academhelper.com Phone: +1 (929) 416 5389 or +1 985-412-8942