• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

customer ID

 
Ian Houston
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ian Houston
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic