Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Airline Reservations: The file passengers.txt contains 10 records with 4 fields in each record, records correspond to the 10 rows in the airplane and fields

image text in transcribed

Airline Reservations: The file passengers.txt contains 10 records with 4 fields in each record, records correspond to the 10 rows in the airplane and fields corespond to the 4 passenger in each seat in a row. If a field is empty, that seat is not occupied. Write a program that reads the passengers.txt into a two-dimensional array and performas the following: Display Seating - display each seat in the airplane with a X for an occupied seat and a period (.) for an empty seat. Display Passengers - display each seat followed by the name of the passenger in that seat. Add Passenger - the user must select the row number and the seat letter and specify the name to be added. If that seat is empty then that name will be entered into the array in that seat, otherwise a "seat taken" message is displayed. Provide error traps for not selecting row or seat or not entering a name. Remove Passenger - the user must specify the name to be removed and that name will be removed from the array and the seat will be empty. The full name must be entered but the compatison is not case sensitive. Provide an error traps for no name entered and for name not found.

need this problem done in Visual Studio using Visual Basic not C## with all error traps and try catches included

Seating Chart Display Seating A B 1 X X Display Passengers 3 X X 4. X Select Row: Select Seat:5 X X 6 X X 8 X X 9 X X 10 X . 1 6 43 10 Name Add Passenger Name Remove Passenger Seating Chart Display Seating A B 1 X X Display Passengers 3 X X 4. X Select Row: Select Seat:5 X X 6 X X 8 X X 9 X X 10 X . 1 6 43 10 Name Add Passenger Name Remove Passenger

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Explain how cultural differences affect business communication.

Answered: 1 week ago

Question

List and explain the goals of business communication.

Answered: 1 week ago