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.
Sky Diploma
Practically a Posting Shark
864 posts since Mar 2008
Reputation Points: 673
Solved Threads: 130
didn't your instructor tell you where that IC number comes from? AFAIK there is no online database of IC numbers.
Ancient Dragon
Retired & Loving It
30,040 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,341
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.
100 25
101 15
102 32
etc. etc
Then when the program asks for IC number, open the above file and read it until the program finds the right row.
Ancient Dragon
Retired & Loving It
30,040 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,341
Check few IC numbers carefully , may be it includes year of birth ,etc .
ithelp
Nearly a Posting Maven
2,230 posts since May 2006
Reputation Points: 769
Solved Threads: 128