my dog learned polymorphism
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Book a room for what duaration? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Book a room for what duaration?" Watch "Book a room for what duaration?" New topic

Book a room for what duaration?

Seid Myadiyev
Ranch Hand

Joined: Jul 02, 2002
Posts: 196
Dear Java Developers,
In the case of the hotel booking system do you I give a user chance to make a room reservation for the duration that he or she would like?
The instructions states:
"date -- The single night to which this record relates, format is yyyy/mm/dd."
But this is only a description/explanation and not a requirement, I am right?
Please, share your opinion!
Thank you very much!
frank sun
Ranch Hand

Joined: Apr 11, 2003
Posts: 102
there is no requirements in the instruction for this, you know, we cannot modify the data file structure, so, where will you store the resevation duration in the data file?
We just need to check is it the right date for the client to book that room.
You could search this topic using the key word 'date' or 'available date'. I saw there are some threads here discuss this issue.
Ta Ri Ki Sun
Ranch Hand

Joined: Mar 26, 2002
Posts: 442
Hi Seid
As Frank said, search this forum and you'll come up with a few discussions around this, but in a nutshell, even though that description of the DB is in fact not a requirement, theres no way to implement duration unless you implement batch/bulk bookings, since that room is available only for that night, so if you want a date range to be booked you'll have to write a bit more code.
I'm sure your search will give you a better idea.
Seid Myadiyev
Ranch Hand

Joined: Jul 02, 2002
Posts: 196
Thank you very much Frank and Ta Ri Ki!
I am thankful to you for your replies.
Please excuse me for posting what has already been discussed -- I will search other posts.
[ May 19, 2003: Message edited by: Seid Myadiyev ]
I agree. Here's the link:
subject: Book a room for what duaration?
It's not a secret anymore!