•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 430,126 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,329 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 419 | Replies: 8
![]() |
This program is supposed to simulate a Reservation System of Daewoo. Using this program, Daewoo ticket reservation agency assistant can perform different tasks related to ticket reservation.
The Daewoo Reservation System will ask the user for the following information :
• Name of passenger
• Departure City
• Destination City
• Date of travel
• Time of travel
• Number of tickets
The Daewoo Reservation System should have the following features:
1. Make Reservation-to reserve ticket/tickets for a passenger and indicate his/her seat number.
2. Modify reservation-to modify the already made reservation
3. Cancel reservation-to cancel a particular reservation
4. Search reservation- to search reservation information of a particular passenger by
a) Passenger name
b) Date of travel
5. Exit –to exit from application
Daewoo Reservation System should also support persistence for passenger ticket reservation records
Supporting simple persistence by any application requires handling of two scenarios
• On start up of application-data (passenger ticket reservation records) must be read from file.
• On end/finish up of application -data (passenger ticket reservation records) must be saved in file.
The Daewoo Reservation System will ask the user for the following information :
• Name of passenger
• Departure City
• Destination City
• Date of travel
• Time of travel
• Number of tickets
The Daewoo Reservation System should have the following features:
1. Make Reservation-to reserve ticket/tickets for a passenger and indicate his/her seat number.
2. Modify reservation-to modify the already made reservation
3. Cancel reservation-to cancel a particular reservation
4. Search reservation- to search reservation information of a particular passenger by
a) Passenger name
b) Date of travel
5. Exit –to exit from application
Daewoo Reservation System should also support persistence for passenger ticket reservation records
Supporting simple persistence by any application requires handling of two scenarios
• On start up of application-data (passenger ticket reservation records) must be read from file.
• On end/finish up of application -data (passenger ticket reservation records) must be saved in file.
•
•
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 11,251
Reputation:
Rep Power: 38
Solved Threads: 940
Write the program just a little bit at a time so that you don't get overwhelmed with all those instructions.
1) Start out by creating a structure that holds the information for one passenger.
2) Then create a 2d array of those structures that represents the seats in an airplain.
3) create the menu with switch statement for choice
When you get all the above done you can write the code that implements each of the menu items -- do them one at a time to make it easier.
And don't try to write all that code at one time before compiling!!!
1) Start out by creating a structure that holds the information for one passenger.
2) Then create a 2d array of those structures that represents the seats in an airplain.
3) create the menu with switch statement for choice
When you get all the above done you can write the code that implements each of the menu items -- do them one at a time to make it easier.
And don't try to write all that code at one time before compiling!!!
<<Freelance Programmer>> << Hobby Site>>
This program is supposed to simulate a Reservation System of Daewoo. Using this program, Daewoo ticket reservation agency assistant can perform different tasks related to ticket reservation.
The Daewoo Reservation System will ask the user for the following information :
• Name of passenger
• Departure City
• Destination City
• Date of travel
• Time of travel
• Number of tickets
The Daewoo Reservation System should have the following features:
1. Make Reservation-to reserve ticket/tickets for a passenger and indicate his/her seat number.
2. Modify reservation-to modify the already made reservation
3. Cancel reservation-to cancel a particular reservation
4. Search reservation- to search reservation information of a particular passenger by
a) Passenger name
b) Date of travel
5. Exit –to exit from application
Daewoo Reservation System should also support persistence for passenger ticket reservation records
Supporting simple persistence by any application requires handling of two scenarios
• On start up of application-data (passenger ticket reservation records) must be read from file.
• On end/finish up of application -data (passenger ticket reservation records) must be saved in file.
The Daewoo Reservation System will ask the user for the following information :
• Name of passenger
• Departure City
• Destination City
• Date of travel
• Time of travel
• Number of tickets
The Daewoo Reservation System should have the following features:
1. Make Reservation-to reserve ticket/tickets for a passenger and indicate his/her seat number.
2. Modify reservation-to modify the already made reservation
3. Cancel reservation-to cancel a particular reservation
4. Search reservation- to search reservation information of a particular passenger by
a) Passenger name
b) Date of travel
5. Exit –to exit from application
Daewoo Reservation System should also support persistence for passenger ticket reservation records
Supporting simple persistence by any application requires handling of two scenarios
• On start up of application-data (passenger ticket reservation records) must be read from file.
• On end/finish up of application -data (passenger ticket reservation records) must be saved in file.
You need to do more than just reposting your assignment!
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Jamshed
Let me honest and polite with you. No one is gonna help you, if you don’t show us what have you have got so far. You need to show some progress.
By the looks of it, it’s not a job which can done straight ways. It would take few hours to get this system working. Or for you, since you’re just a beginner you might take take days to complete.
Ok, let me help you in getting started. From the problem what I can see there, you need to know few concepts like File handling, structures, array. Do you know any of these concepts?
But any way, here are few links for you to get started.
Structures: http://www.cprogramming.com/tutorial/lesson7.html
Arrays: http://www.cprogramming.com/tutorial/lesson8.html
File Handling: http://www.cprogramming.com/tutorial/lesson10.html
Once you are confident, post back. We might be able to help further.
ssharish
Let me honest and polite with you. No one is gonna help you, if you don’t show us what have you have got so far. You need to show some progress.
By the looks of it, it’s not a job which can done straight ways. It would take few hours to get this system working. Or for you, since you’re just a beginner you might take take days to complete.
Ok, let me help you in getting started. From the problem what I can see there, you need to know few concepts like File handling, structures, array. Do you know any of these concepts?
But any way, here are few links for you to get started.
Structures: http://www.cprogramming.com/tutorial/lesson7.html
Arrays: http://www.cprogramming.com/tutorial/lesson8.html
File Handling: http://www.cprogramming.com/tutorial/lesson10.html
Once you are confident, post back. We might be able to help further.
ssharish
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Dot Net programmer wanted. Work from home. (Web Development Job Offers)
- updating my bios so that I can make it Xp compatible (Windows 9x / Me)
Other Threads in the C++ Forum
- Previous Thread: Need help for a project
- Next Thread: vector question



Linear Mode