Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

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.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91896556

Have any Question?


Related Questions in Programming Language

Question - create a microsoft word macro using vba visual

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Question 1 what is hadoop explaining hadoop 2 what is

Question: 1. What is Hadoop (Explaining Hadoop) ? 2. What is HDFS? 3. What is YARN (Yet Another Resource Negotiator)? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow t ...

Structs and enumsoverviewin this task you will create a

Structs and Enums Overview In this task you will create a knight database to help Camelot keep track of all of their knights. Instructions Lets get started. 1. What the topic 5 videos, these will guide you through buildi ...

Assignment - haskell program for regular expression

Assignment - Haskell Program for Regular Expression Matching Your assignment is to modify the slowgrep.hs Haskell program presented in class and the online notes, according to the instructions below. You may carry out th ...

Assignmentquestion onegiving the following code snippet

Assignment Question One Giving the following code snippet. What kind of errors you will get and how can you correct it. A. public class HelloJava { public static void main(String args[]) { int x=10; int y=2; System.out.p ...

Php amp session managment assignment -this assignment looks

PHP & SESSION MANAGMENT ASSIGNMENT - This assignment looks at using PHP for creating cookies and session management. Class Exercise - Web Project: Member Registration/Login This exercise will cover adding data connectivi ...

Extend the adworks applicationi add dialogs to allow the

Extend the AdWorks application I. Add Dialogs to allow the user to Add, Edit, Read and Delete a Customer and refresh the view accordingly. 1. The user should be able to select a specific customer from the DataGrid and cl ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

Task working with arraysoverviewin this task you will

Task: Working with Arrays Overview In this task you will create a simple program which will create and work with an array of strings. This array will then be populated with values, printed out to the console, and then, w ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As