| | |
Identify someone's age by entering the IC number...
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2009
Posts: 38
Reputation:
Solved Threads: 1
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’.
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’.
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.
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.
•
•
Join Date: Oct 2009
Posts: 38
Reputation:
Solved Threads: 1
could you tell me what do i suppose to read??
thank you...
thank you...
•
•
•
•
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.
•
•
Join Date: Oct 2009
Posts: 38
Reputation:
Solved Threads: 1
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...
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...

-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.
Then when the program asks for IC number, open the above file and read it until the program finds the right row.
C++ Syntax (Toggle Plain Text)
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.
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.
0
#7 23 Days Ago
Check few IC numbers carefully , may be it includes year of birth ,etc .
![]() |
Other Threads in the C++ Forum
- Previous Thread: C++ Calculator Program
- Next Thread: ListBox example for Dev C++
| Thread Tools | Search this Thread |
api array based beginner bitmap c++ c/c++ calculator char class classes code coding compile compiler console conversion count database delete deploy desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number output parameter pointer problem program programming project python random read recursion recursive return sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






