Question: I need a C + + program code on this question below. ITSE 1 3 0 2 FINAL PROJECT 1 Overview The owner of a
I need a C program code on this question below.
ITSE FINAL PROJECT Overview The owner of a small regional airline, Tyler Eagle Jet, would like you to develop an airline reservation system that supports his business. The airline provides flights daily between Tyler Pounds Field TYR and DallasFort Worth DFW The cost of a round trip ticket is only $ The flight schedule for this airline is as follows: Tyler Pounds Field TYR Flight no Depart TYRArrive DFW :am:am :am:am :pm:pm :pm:pm DallasFort Worth DFW Flight no Depart DFWArrive TYR :am:am :pm:pm :pm:pm :pm:pm Each flight is capable of carrying passengers according to the seating chart below: A B This is the aisle C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D A B C D ITSE FINAL PROJECT Requirements MENU: Your airline reservation system will support the following MENU commands as described below. Each command will be abbreviated using a single character for ease of entry. The user will be prompted to enter a command from the menu. Show flight Schedules this command displays the flight schedules listed on page Book a reservation this command is used to make a reservation. Cancel a reservation this command is used to cancel a reservation. Display seating chart this command displays the seating chart for a flight. View passenger list this command displays the passenger list. List commands this command listsmenu the available commands in your airline reservation system ie the commands described in this listQuit this command will exit the airline reservation system. DISPLAY WELCOME MESSAGE: This void function will display the welcome message only one time at the beginning of the program. You will use the systempause statement for the user to press any key to continue with the program. DISPLAY LIST COMMANDS: This void function will be called when you want to display the command lists in the airline reservation system by selecting L from the menu. See menu above. SHOW FLIGHT SCHEDULES: This void function displays the flight schedules listed on the first page of the handout when the user chooses S from the menu. DISPLAY END MESSAGE: This void function displays an end message to the user when they choose Q from the menu. VALUE RETURN FUNCTION for flight index getFlightIndex function: The flight index is what you will need for all the options from the menu that refers to the flight number the user is acquiring information about. The flight index will be the subscript that will be used when you reference the flightNumbers array ie flightNumbersflightIndex The function will have the user enter the flight number after displaying the flight schedule. The function will search the flightNumbers array to find the index or subscript of the flight number. If the search does not find the flight number then an error message should appear and prompt the user to reenter the flight number. The index or subscript number will be returned since that will represent the flight. For example, would return a flight index of Before the return statement you will want to clear the screen, since you will be displaying a new window after the function is called. ITSE FINAL PROJECT DISPLAY SEATING CHART FUNCTION: This function displays the seating chart for a flight. To display a seating chart the flight index will need to be passed into this function. You will be using a dimensional array in order to display the output of the seats. The first subscript represents the flight index, the second subscript is the row and the third subscript is the seat. For example, seatingChart will be flight second row, seat B To indicate a seat is occupied a and should be placed around the seat number ieA The seating chart array is initialized to so when a person books a flight in a specific seat you will set the value for that seat to Hint: You will have to use nested loops to cycle through the D seating chart array to test whether each seat is occupied. Ex seatingChartflightIndexrowseat Keep in mind that you only need nested loops to control row and seat. flightIndex will not change since you are only looking at one flight at a time. Use setw to get your output to align whether or not there are parenthesis surrounding the number. Use t to create the tab for the center aisle. DISPLAY PASSENGER LIST FUNCTION: This function displays the passenger list. The flight index is required to display the passenger list. When displaying the passenger list, the flight number should be included in the output along with the following information: the first name and last name of each passenger along with their seat number and the total number of passengers on the flight. See program for example. You can use the test data from Canvas for this part. You will copy and paste the data in the main function after any local variables you declare. Make sure it is before the do while loop. The test data is for Flight Hint: In the function, create a counter for the number of passengers. Incrementing it by one each time you find a passenger. You will need to search through the seatingChart array, to see what seats are occupied. When you find an occupied seat value then you will display the corresponding spot in the firstName and lastName arrays. These arrays are parallel to the seatingChart array. Seat: A Joe Smith you will need to use setw between the word Seat and the actual seat number and t between seat number and the name. ITSE FINAL PROJECT BOOK A RESERVATION FUNCTION: This function is used to make a reservation. When making a reservation you will ask the user the following information: the flight number using getFlightIndex in switch statement in the main function the seat number, and the passengers first name and last name. After the reservation is made the following information should be displayed: the current seating chart for the flight and the current passenger list. Hint: You will ask the user for the seat preference ie C You will have two cins with the first taking in the number and the second taking in the letter. cout Enter Seat Preference: ; cin number; cin letter; You will need to use TOUPPER function to change the letter seat to uppercase. Make sure to test the row and seat to make sure they are valid before you continue. If it is not valid then tell the user Seat whatever they entered does not exist and ask for the seat preference again. Dont forget to assign to the seating chart array since the seat is now occupied. Add the first and last names to their respective spots in the firstName and lastName arrays. CANCEL A RESERVATION FUNCTION: This function is used to cancel a reservation. When canceling a reservation you will ask the user the following: the flight number and the seat number. After the cancellation is made the following information should be displayed: the current seating chart for the flight and the current passenger list. See the program for an example. Hint: This function works very similar to the bookReservation function. Coding Requirements and Guidelines: When implementing your program, you can only use those C features that were covered this semester unless first approved by me Using advanced features such as Classes, Structures, Dynamic Memory Allocation, etc. is not permitted. You will not be able to modify the MAIN FUNCTION or add code to the main function other than the test data and removing comments All your coding will be completed in the various functions. Use comments when appropriate. Remember to use correct indention. If a command results in displaying information on the computer screen you must first clear the display screen before you display the information. This project is a review of the semester. I will be able to help you with anything new on the project; otherwise, you will need to work on the project on your own.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
