Football ticket reservation

hello guys,

i'm a beginner user of c++, recently i need to build a system based on football reservation. The system allow user to book and cancel their tickets. There are 2 type of ticket, VIP and Normal that come in different price. User also may choose to reserve a home or away ticket. The reservation period is only valid for upcoming events in 30 days time only. Means that, we can only book a ticket for upcoming event within 30 days only. beside that, the system will asked for deposit of half from the total price ticket reserved. Moreover, user can check their ticket status whether it's cancelled, postponed or active. User also might cancel their ticket and the system will automatically, calculate the availability of seats remains.

i need help on how to build this system and i don't have any idea how to cancel the ticket..

thanks..
Are you talking about an official system, with a database and account/login system, or just a console app as an exercise? It's not really clear from the description.

I'm going to assume the latter:
a) Try to decide how to store tickets. You're going to need some sort of user<->ticket link. There are many ways to do this (keep a list of users, each with a list of tickets; keep a list of tickets with a username attached to it; keep a list of seats and tag them as "taken by user X"; etc). Each has its advantages and disadvantages.

b) Split the program into Input, Handling and Output. What Input do you need? (e.g.: username, action, etc.) What happens in the system to accomodate that action? (e.g.: Make/Delete a ticket; tag/untag a seat; etc.) What does the user need to know? (e.g.: Confirmation message; updated status of his ticket/account; etc.)

c) Start at the beginning and come back to us if you run into specific problems!
yes, it's a official system with database.



the system will need the user identification number as reference to their reservation. if the user want to cancel their reservation, the system will ask for the id number. So the system will recognizes the reservation. i was thinking to provide a reservation number, which is produced after user make their reservation and by the number, the system will detect all the information regarding the reservation. maybe i can use the reservation number to perform the cancelling process.
I'm sorry for being dense, but I'm still not exactly sure: is this system meant to be used in the outside world? If so, I don't think you're ready. I don't even think C++ is the proper language for it. It sounds like you want an online registration/reservation system (what would the purpose be of an offline reservation system...?). When real money is involved, you're going to need a secure system.
i'm sorry if my explanation is confusing u..actually it a kiosk system where user can make a reservation and the kiosk is located nearby the stadium and connected via LAN to the stadium ticket counter. The database is renew after 30 days and it's a offline system. If user want to reserve their ticket, they must go to the kiosk due to at the counter user can't make reservation and only can redeem their real ticket using pre-ticket that printed from the kiosk.
That's a pretty complex project for a beginner.
huhhh... o_0''
after thinking about it, i feel that i'm going to make it like console app as an exercise. then if, i already master at it..i will implant it.
thank you..
what i have to do if i want to make it just like a console app???
Follow the steps above!

If I were you, I'd begin with the simplest version: empty when started, add tickets based on user input, all cleared when done. Then, you can move on to more advanced things (e.g. adding the option to delete; adding user information; differentiating between VIP and normal; storing data in files between runs; etc).

So, baby steps. Start small and expand it when you're ready.
yaa..u gave me the idea..thanks!
is there any coding that i can refer to??
done with my flowchart..now i really see how the program going to work.
but still unsure whether it is wrong or correct.
Feel free to post it up.
how to post it up??
Topic archived. No new replies allowed.