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

  Draw and implement abstract base class

Draw and implement the abstract base class ArithmeticExpression which represent any binary (having two arguments) arithmetic expression.

  Advantages of turning the atm switches into lsr

Under these conditions, what are the advantages, if any, of turning the ATMswitches into LSRs, as opposed to using an overlay network?

  A slip class file with indicated methods defined

A customer Class file with indicated Methods defined - A boat Class file with indicated Methods defined and a slip Class file with indicated Methods defined.

  Perl program that finds all the orfs in a genomic sequence

Given the genomic sequences for an organism; one of the first steps in identifying the genes is to identify the open reading frames - write a Perl program that finds all the ORFs in a genomic sequence.

  Write program for real estate agent

Write a program for a real estate agent. The program should perform the following tasks: ask users for the average house price for the each of past 5 years for a single family residence of 1500 square feet.

  Create a function that takes a one dimentional array

Create a function that takes a one dimentional array us a argument the function should return only these members from the array which are divisible by 4.

  Write a number guessing game program

Write a number guessing game program. The program will first generate a random number from 1 to 100. Then, the user guesses a number and the game will report whether the guess is too low or too high.

  Write a program that uses is and else or if and elsif

write a program that uses is and else or if and elsif conditional statementsthat asks the user to enter a value for

  Make simple html document add a comment

Make simple html document Add a comment Add a hyperlink to www.google.com Create simple HTML headings h1 to h6

  Explain overriding method

Assuming the class B inherits from class A and method foo belongs to class A, what do we mean by overriding method foo in class B? We are coding another version of method foo in class B

  Program display error message if test score is invalid

The program must display suiatble letter grade. The program must display an error message if the test score is 100.

  Write a powershell script changenames

Create a batch file CHANGENAMES.BAT that does the following (note that %1, %2, and %3 refer to command line arguments passed to the batch file when executed): Creates a set of %1 empty files with randomly generated names, with filename extension %2..

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