Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
airline reservation system project with problem statement
#1

airline reservation system project with problem statement

Task: ticket reservation system

Write a program for the flight reservation system that reserves the tickets for passengers on an overhead line according to their requirements.

Detailed description:

In the program, you need to make the structure of the name 'Reservation' and include the following data elements of the structure.

? passenger Name
? Passenger Address
? flight date
? Destination travel
? Flight number
? No seat

In the main () function, create a variable of type backup. Variable type backup should be created dynamically using a memory allocation function. Then create the following user-defined functions, as described below:

GetData (), this function is to set variable values established above structure according to the inputs received from the user. It prompts the user to enter the required information for the passenger, the passenger's name Address, destination, flight date. Users will be provided with three options for a destination that: Karachi, Lahore and Peshawar.

Destination Flight number and seat number:

This user has not selected one of the three areas and the program will assign the appropriate Flight passenger. No Flight No will be assigned as shown below:

Direction Flight Number
Karachi 201
Peshawar 233
Lahore 241

After assigning the flight number, seat number is randomly distributed, which can be any number from 0 to 200.

After assigning a value to a variable created above redundancy structure, the structure will be transferred to another user WriteData () function to write it to a file.

In WriteData () function, you need to create a new text file name "data.txt" in the same folder / directory where you saved the .cpp file. Open this file via file functions, and then burn all the reservation information in the file.

After all, read all the data from a file by creating a function called ReadData () and display the contents of a file on the screen.

Points to remember:

These points should be kept in mind, and handled accordingly, otherwise signs are subtracted.

? Reading and writing from a text file, it must be done using standard file handling functions presented in handouts.
? All these elements need to be declared and initialized with the appropriate data type.
? Exceptional cases should be kept in mind and treated appropriately, taking input from the user.
? The user should be asked if there are any errors during:

? Create a file.
? Open a file for read / write.
Reply

#2
what are airline reservation system project with problem statement
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2024 iAndrew & Melroy van den Berg.