Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions