new automated reservation system. You have been asked to 2.Your program should print a Boarding Pass indicating the person seats number and whether it is smoking or non-smoking section of plane.3.Use a single subscripted array to represent the seating chart of the plane. Initialize all the elements of the array to 0 to indicate that all seats are empty. As each seat is assigned set the corresponding elements to 1 to indicate that seats s no longer available.4.You program should, never assigned a seat that has already been assigned.5.When the smoking section is full your program should ask the person if it is acceptable to be placed in the non smoking section6.When the non-smoking section is full your program should ask the person if it is acceptable to be placed in the smoking section7.In case of (Point 5, 6 above) If ‘Yes’ then make the appropriate seat assignment. If ‘No’ than print the message “Next flight leaves in 3 hours â€Output: (Y stands for YES and N stands for N)Welcome to Airline Reservation System: