QUOTE(Brain @ 9 Aug, 2008 - 06:14 AM)

[b]That was a challange for me and i throw this to you.
So, apperantly, it was to much of a challenge for you. Because you thre it on these fine gents... Your approach is appauling, however, I'll give you the benefiet of the doubt. How to create a program.
The first thing you need to do, is figure out all the program should look from the users perspective, write it down on Paper if you need too.
create a flow chart that will cover all your needed functions, data you will need to work withand so on...
Go into your editor and set up all your inital values.
· Name of passenger
· Departure City
· Destination City
· Date of travel
· Time of travel
· Number of tickets
Set up these values (even if they are empty)
The Daewoo Reservation System should have the following features:
Consider a feature as a function. For each feature, expect to write one, or more functions designed to accomplish this task.
1. Make Reservation-to reserve ticket/tickets for a passenger and indicate his/her seat number.
Here: You need Name, ticket number, seat number, time, and date.
Input the name, have your system generate a ticket number, and assign a seat. Return those values to the screen
2. Modify reservation-to modify the already made reservation
Write your function to allow a customer to be pulled up by name, and re-assign the seat, time, date, and or ticket number.
3. Cancel reservation-to cancel a particular reservation
Write a function to delete the required information and return those values as "available" so the system can re-use them.
4. Search reservation- to search reservation information of a particular passenger by
a) Passenger name
Date of travel
This function would be a search through your arrays to match and display your information.
5. Exit –to exit from applicationDaewoo Reservation System should also support persistence for passenger ticket reservation recordsSupporting simple persistence by any application requires handling of two scenarios
This function will allow you to write the proper information into your file.
· 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.
Now, Go write your program. Don't worry about the errors. When you get this much written come back and post it, and these guys will help you with your errors. (Even though with your attitude, they shouldn't) They are professionals.