Identify someone's age by entering the IC number...

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2009
Posts: 38
Reputation: samsons17 is an unknown quantity at this point 
Solved Threads: 1
samsons17 samsons17 is offline Offline
Light Poster

Identify someone's age by entering the IC number...

 
0
  #1
24 Days Ago
Hi..
I'm wondering how could we make a program that could determine one's age by just entering his or her identification card number..
Is there any function in c++ that we can use??
this is the sample of question...

Movies in cinema has ratings to suit ones appropriate age level and mentality. To reserve a cinema ticket online, users are required to enter their IC number to verify their age. If the patron’s is aged 21 and above, they are in the ‘adult’ category. Patrons between the age of 20 and 13 are ‘teenagers’. If the patron is aged below 12, they are in the ‘child’ category. Patron’s who are above the age of 59 are in the category of ‘senior citizen’.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 672
Reputation: Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold Sky Diploma is a splendid one to behold 
Solved Threads: 99
Sky Diploma's Avatar
Sky Diploma Sky Diploma is offline Offline
Practically a Master Poster
 
0
  #2
24 Days Ago
Well firstly you will need a database or a particular condition to determine the age of the person with the ID card number.

If this is a project for you ..... read through the material to get the basic condition. And then you can interpret it in the code

Happy Coding.
1. Please Mark Your Thread as Solved After Getting Your Answers.
2. Please Use CODE TAGS .
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 38
Reputation: samsons17 is an unknown quantity at this point 
Solved Threads: 1
samsons17 samsons17 is offline Offline
Light Poster

could you tell me what do i suppose to read??

 
0
  #3
24 Days Ago
could you tell me what do i suppose to read??
thank you...








Originally Posted by Sky Diploma View Post
Well firstly you will need a database or a particular condition to determine the age of the person with the ID card number.

If this is a project for you ..... read through the material to get the basic condition. And then you can interpret it in the code

Happy Coding.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,342
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1460
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning
 
-4
  #4
24 Days Ago
didn't your instructor tell you where that IC number comes from? AFAIK there is no online database of IC numbers.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 38
Reputation: samsons17 is an unknown quantity at this point 
Solved Threads: 1
samsons17 samsons17 is offline Offline
Light Poster
 
0
  #5
24 Days Ago
Actually this is not a project that i suppose to do..
I just accidentally found this question..
So I'm wondering how should i do this kind of program...
could anyone helps me?
because i really curious about this, plus i'm still new
so there are a lot of things that i dont know yet...
Please help me...thanks...



Originally Posted by Ancient Dragon View Post
didn't your instructor tell you where that IC number comes from? AFAIK there is no online database of IC numbers.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,342
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1460
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning
 
-4
  #6
24 Days Ago
In that case you will probably have to create your own database if IC numbers and related ages. Just use a standard text editor to create it, something like this where the first column is an IC number and the second column is an age.
  1. 100 25
  2. 101 15
  3. 102 32
  4. etc. etc

Then when the program asks for IC number, open the above file and read it until the program finds the right row.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,813
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 117
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso
 
0
  #7
23 Days Ago
Check few IC numbers carefully , may be it includes year of birth ,etc .
Reply With Quote Quick reply to this message  
Reply

Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC