Reference no: EM132331703 
                                                                               
                                       
Note 1
You are advised to use only the C# concepts taught in this Unit through Lectures and Tutorials.Otherwise, you will incur a penalty and could get zero.
Problem Specification:
Your programming task is to design and develop a console application for an airline company that issuesboarding passes for an aircraft with 40 seats. You have to design and develop a C# object-oriented solution for this task.
The application requires a class called Passenger that contains passenger information and allocates a seat number based on seat availability to each passenger. The data attributes for the passenger class includes, but not limited to, a security number, departure time, departure gate and other attributes that are required to issue a boarding pass.
You need to construct methods to obtain all information necessary fromthe passengers.
Your application must meet all the following requirements and handle all run time errors. 50% of the marks allocated for each requirement will be deducted if your program cannot handle the errors.
1. Passenger names should not be longer than 5 characters.
The passenger name (i.e. first and last) should be trimmed or truncated to 5 characters if the name provided is greater than 5 characters.
2. Security number on boarding pass should be a random number generated between 30,000 and 999,999.
3. Each seat number must only be allocated to one passenger. For example, if the seat number 14 is allocated to a passenger, then the seat number 14 should not be available for the any other passenger.
4. The application will continually accept passenger requests; the passenger attributes may vary from passenger to passenger (e.g.each passenger is a new object). Your application should also be able to handle a number of the passengers in a single invoice. For example, Mr John Smith may have bought two tickets for his wife and himself in single invoice. This means the application should be able to accept and allocate adjacent seats for the two passengers.
5. If all seats have been allocated to passengers, the application should not accept any more requests.Notify the Airline Assistant.
6. Date and Time should be printed when passenger entries are completed.
(e.g., system time 24 April2019).
7. You should have a method (part of the Passenger class) to list all the passenger names followed by their seat numbers and the security numbers once the flight is closed.
8. After check-in is completed, boarding passes must be displayed in a tabular format for each passenger.
9. Create a method to display the available seats to the Airline Assistant on request anytime. This method should be part of the Passenger class and will be invoked from the Main() method.
Note 2
1. You are required to use the Object-Oriented concepts from C# taught in Lectures and Tutorials.
You are required to create only one class-Passenger, a number of data fields, corresponding properties, the necessary constructors and the required methods.
All display methods should be Read Only.
2. Your program must generate an appropriate error message if any input does not follow the required criteria and then request the user to re-enter the input.
Attachment:- Project  - Programming.rar