Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
• Campbell Ritchie
• Bear Bibeault
• Ron McLeod
• Jeanne Boyarsky
• Paul Clapham
Sheriffs:
• Tim Cooke
• Liutauras Vilda
• Junilu Lacar
Saloon Keepers:
• Tim Moores
• Stephan van Hulst
• Tim Holloway
• fred rosenberger
• salvin francis
Bartenders:
• Piet Souris
• Frits Walraven
• Carey Brown

# leading zeroes, customer reference number

Ranch Hand
Posts: 61
If customer has 8 digit number, is 00000001 a valid number?

or not...thanks

Ranch Hand
Posts: 181

Originally posted by Lucy Sommerman:
If customer has 8 digit number, is 00000001 a valid number?

or not...thanks

I'm going by what the documentation says: that the CSR's know what the customer's id number is. The only validation I have is to check and make sure that the id is 8 digits long, not a digit more or less. I don't think we need to question whether 00000001 is valid or not, because we are assuming they know what it is. However, I would check for the 8 digit length though. Just my advice.

Ranch Hand
Posts: 36
I know my documentation says the customer ID is an 8 digit number. Is the 8 digits a hard requirement? or can it be less than 8 digits? something like 123.

Daniel Simpson
Ranch Hand
Posts: 181
I would interpret it as 8 digits long. Not 3 or 4. But that's just my opinion.

Ranch Hand
Posts: 581

Originally posted by Lucy Sommerman:
If customer has 8 digit number, is 00000001 a valid number?

or not...thanks

Hi Lucy,

which assignment are you doing? Does your instruction say you have to deal with the customer number? As for my assignment, the instruction does tell how many digits the customer number has, but it clearly tells you that you don't have to deal with this field, the care should be taken by the customers themselves. My understanding is, I could just leave enough space for the digits somewhere when needed, but no verification in my program. How do others think?

Regards,
Ellen

author and jackaroo
Posts: 12199
280
Hi everyone,

Regarding the size of the customer ID, you might want to look at the topic "Questions about contractors answered by sun".

Regards, Andrew

Lucy Sommerman
Ranch Hand
Posts: 61
great thanks. Well, looks like smaller numbers are ok - however, I have already done validation to check is 8 digits (and an integer), so will leave that and justify my choice in the documentation.