Question: Write a C# program that uses serialization to create your own flights.xml file. Your C# program must create this file so your later assignments can

Write a C# program that uses serialization to create your own flights.xml file.

Your C# program must create this file so your later assignments can regenerate this file when you test your flight reservations.

Create a component (class library) to hold all code not directly used to display data on a form. In your component, you will need to create a Flight class and a FlightFactory class (to handle serialization).

Here are some details to keep in mind regarding the flights.xml file: Your flights.xml file must be created in the same folder as your CreateFilesForm. Each aircraft holds 10 passengers. The file must contain four flights in each direction on all the possible routes involving these four airports: MIA, SEA, DEN, and LAX, for dates 6/1/2017 through 7/1/2017, inclusive.

You will probably want to use a loop when creating this file, possibly with some random numbers.

The flight number and time schedule must be the same each day. Flights between different cities have different fares. Flights between the same two cities (MIA-DEN, for example) must have different fares at each time of the day. (Some times are more desirable than others.)

Fares for flights will never be less than $500 and never more than $3,000. Flights in the middle of the day tend to be more expensive that early morning and late evening flights.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!