aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes customer ID 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 "customer ID" Watch "customer ID" New topic
Author

customer ID

Ian Houston
Greenhorn

Joined: Aug 18, 2005
Posts: 6
When you book one hotel room, or one record, you need to replace that record's last column value from blank to certain customer ID. According to the instruction, "The system you are writing does not interact with these numbers, rather it simply records them", so my solution is:
1) create a sample customer ID arry which contains something like"12345678", or "23456789", etc.
2) when doing booking, randomly select one ID from that ID array.

Is this ok?
Thanks.
Thomas Paul Bigbee
Ranch Hand

Joined: Jun 28, 2005
Posts: 71
This is what the requirements say

The id value (an 8 digit number) of the customer who has booked this. Note that for this application, you should assume that customers and CSRs know their customer ids. The system you are writing does not interact with these numbers, rather it simply records them. If this field is all blanks, the record is available for sale.

I don't know if auto generating this number is going to subtract from the overall score, however, better safe than sorry.

Tom
Ian Houston
Greenhorn

Joined: Aug 18, 2005
Posts: 6
Maybe my understanding of the instruction is wrong. I am still confused here. How do you update one record when booking it for some customer? What value you will put there?
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11508
    
  95

Hi Ian,

The CSRs and their customers know their own customer numbers. So you have to provide some method for the CSR to enter the customer number into the system.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Ian Houston
Greenhorn

Joined: Aug 18, 2005
Posts: 6
But why the instruction says no interaction with such numbers? How to understand that? It is easy to provide a simple input dialog for CSRs to enter such values, does that violate that interaction rule?
Thanks.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11508
    
  95

Hi Ian,

I think the "no interaction" means that you are not modifying them / validating them against another table / doing anything with them except storing them.

Regards, Andrew
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: customer ID