Develop a database of flight information - implement make


Project Guidelines:

This is a group assignment with 5 students per group and it contributes to 20% of the total grade of this course. Student will choose their own group member based on their lecture groups.

Objectives:

To demonstrates the ability of students to:
- To evaluate student's skills in understanding a given problem, formulating a solution and implementing it in C programming language.
- To develop problem-solving skills
- To work together as a team to solve a given problem.

All topics are covered for this project. However, project question focuses on the topics below:-

1. Array
2. Pointer
3. Basic data structures
4. File processing

Project Description Instruction:

Your company CEO has asked to program the new Small Airline Reservation System in C. There are two
parts that need to develop.

Part 1: Develop a database of flight information.

The database of flight information should be kept in a file of structures with the following components:

a) Flight number (including airline code)

b) City of departure

c) Destination

d) Date and time of departure

e) Date and time of arrival

f) Number of first-class seats still available (seat 1 - 6)

g) Number of first-class seats sold

h) Number of economy-class seats still available (seat 7 - 24)

i) Number of economy-class seats sold
Include in your program separate functions for creation, deletion and update the flight records. For this project, limit your flight as per day reservation and to three routes as shown below:

a) Kuching to Kuala Lumpur ( 7 flights per day)

b) Kuching to Kota Kinabalu (5 flight per day)

c) Kuching to Penang (4 flight per day)
All these records must be saved in a file for reservation purposes.

Part 2: Flight reservation

In this project, you also need to implement make reservation and cancel reservation functions. For make reservation menu, your program should ask the user to choose the flight available from your database. Then, the user can choose the preferred seat as shown below:

Please type 1 for business class Please type 2 for economy class

If person types 1, the program should assign a seat in business class (seat 1 to 6). If the person types 2, then it should assign economy class (seat 7 to 24). Use a single-scripted array to represent the seating chart of plane. Initialize all the elements of array to 0 to indicate that all seats are empty. As each seat is assigned, set the corresponding elements of array to 1 to indicate that seat is no longer available. Your program should never assign a seat which is already purchased. When the business class is full, your program should ask the person if it is acceptable to be placed in economy class (and vice versa). If yes,

then make the appropriate seat assignment. Your program then should display the booking details. All these records must be saved in a separate file for each flight.

Your program also must be able to cancel the flight reservation if needed. In addition, this program can display all flight reservations for validation.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Develop a database of flight information - implement make
Reference No:- TGS01524405

Expected delivery within 24 Hours