Develop a database of flight information

Assignment Help Programming Languages
Reference no: EM131140057

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.

Reference no: EM131140057

Questions Cloud

The general ledger of sanchez company contained : Indicate the missing posting reference and amount in the control account, and the missing ending balance in the subsidiary ledger.
Explain the main factors that you should consider : Explain the main factors that you should consider before deciding whether to buy a laptop or a tablet - Identify the key features of a laptop and a tablet. Next, discuss three (3) important characteristics of each that might influence your decision..
Who would you consult during the risk identification phase : Who would you consult during the risk identification phase? How would you start the process of developing a risk management plan for the project? What rules are there for creating the Work breakdown structure ? Why is an accurate and comprehensive WB..
Benefits and risks of implementing virtual integration : Dell manages a small number of suppliers and serves its customers directly. It has enjoyed great success by implementing "Virtual Integration", which as described by Michael Dell seems to be a way of capturing the advantages of vertical integration w..
Develop a database of flight information : Develop a database of flight information - 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.
Sole qualifier for job offer to simply an administrative : Today, as organizations continuously seek ways to discover the best talent – standardized, and/or personalized testing have gone from serving as the sole qualifier for a job offer to simply an administrative or piece of the overall hiring puzzle. How..
Show the effect of the foreign interest rate increase : If the authorities took no action, what would be the adjustment process along the lines described by the monetary approach to the balance of payments?
Extraneous material and replacing any buzz words : Rewrite each of the following sentences as precise, informative claims, by removing any extraneous material and replacing any buzz words, politispeak, and ambiguous terms with meaningful terms. “Methodically, coldly, the salty wind scratched relentle..
Collection on account from customers : For each transaction, indicate whether it would normally be recorded in a cash receipts journal, cash payments journal, sales journal, single-column purchases journal, or general journal.

Reviews

Write a Review

Programming Languages Questions & Answers

  Generate a salary as a number with two digits

Generate a salary as a number with two digits after the decimal point. The salary for a teacher should be in the range from $40,000 to 70,000.

  Create a windows application and design document

create a complete C# Windows application and design documents based on the following specifications and instructions.

  Prevent stack smashing within an executable program

What is pseudocode, and how does it assist in code translation? What are two methods that can be employed to prevent stack smashing within an executable program?

  Write a windows form program for a nina''s cookie source.

Include at least one other functional control such as a button (Exit button) or a MenuStrip having an Exit and an About selection.

  Write program that uses recursive function to count number

Write a program that uses a recursive function to count the number of blobs in a square grid. Input to the program should consist of the locations of the asterisk in the grid.

  Steps in preparing a high level language program

Describe the purpose of each step in preparing a high level language program for execution (editing, compiling, linking, and loading).  Include in your description the types of files created with each of the first three steps.?

  Create a base class that contains all of the properties

Create a base class (also called a superclass) that contains all of the properties that are common to both of these products. Create 2 derived classes (also called subclasses) that contain different kinds of sizes.

  Create logic for program to count readers by genders

Create the logic for a program that would produce a count of readers by gender within age group - that is, under 20 females, under 20 males, etc.

  What will the following program segments display

What will the following program segments display

  Write calendar application which allows user to select date

The purpose of this lab is to give you a chance to use some of the data stream tools we have been discussing in a simple application. The assignment is to write a calendar application which allows the user to select a date, and either retrieve a p..

  Program to create three identical list

Write a program to create three identical list, list1, list2, and list3, of 5000 elements. The program then sorts list1using quick sort, list 2 using insertion sort.

  Web design and object-oriented programming

Identify two differences between web design and object-oriented programming

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd