# (no subject)

**URL:** <https://www.ruby-forum.com/t/no-subject/141992>\
**Category:** Ruby\
**Created:** [July 2, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/no-subject/141992 "2008-07-02T13:01:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ntokozo\_mdletshe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/6f9a4e/32.png) [@ntokozo\_mdletshe](https://www.ruby-forum.com/u/ntokozo_mdletshe)\
**Post date:** [July 2, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/no-subject/141992/1 "2008-07-02T13:01:43Z")

</div>

i nid help with  
Write a Ruby program that askes for your name and id number from the  
command line.  
Then the program must check if the ID number is a valid south african ID  
number according to the specification on

> **[National identification number | South Africa](https://en.wikipedia.org/wiki/National_identification_number#South_Africa)**
>
> In South Africa every citizen must apply for an Identity Card from the age of 16 years. The ID number is already allocated at the time the birth certificate is generated and required for child passport applications. This passport-size document contains only 8 pages - the first page containing the national identification number (also in barcoded format), name of bearer, district or country of birth, as well as a photograph of the bearer. The other pages are used for recording of voting participati...

brian

---

<div class="post-metadata">

**Author:** ![ntokozo\_mdletshe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/6f9a4e/32.png) [@ntokozo\_mdletshe](https://www.ruby-forum.com/u/ntokozo_mdletshe)\
**Post date:** [July 2, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/no-subject/141992/2 "2008-07-02T16:12:41Z")

</div>

I think using getoptlong or simple ARGV with some if statements should  
help  
you build some skeletal. Atleast you could post your code and see if any  
other persons are interested. I am sure that it not so difficult to do.

---

<div class="post-metadata">

**Author:** ![ntokozo\_mdletshe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/6f9a4e/32.png) [@ntokozo\_mdletshe](https://www.ruby-forum.com/u/ntokozo_mdletshe)\
**Post date:** [July 3, 2008, 6:33am UTC](https://www.ruby-forum.com/t/no-subject/141992/3 "2008-07-03T06:33:12Z")

</div>

On Wed, Jul 2, 2008 at 5:58 AM, ntokozo mdletshe  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i nid help with  
> Write a Ruby program that askes for your name and id number from the command line.  
> Then the program must check if the ID number is a valid south african ID number according to the specification on  
> [National identification number - Wikipedia](http://en.wikipedia.org/wiki/National_identification_number#South_Africa)
> 
> brian

You mean you must do this?..

> **[Geekswithblogs.net, the End of an Era](http://julian.farm/geekswithblogs/?url=%2Fwillemf%2Farchive%2F2005%2F10%2F30%2F58561.aspx)**
>
>   Geekswithblogs.net, founded in 2003, had a very long run. The future of the site is now back in the hands of the original founder, Jeff Julian, and that is why you are here at Julian Farms or my consulting firm, Squared Digital. What’s next?...

Todd
