Question: Please help me write the code with commentsthanks REPUBLIC OF SOUTH AFRICA NATIONAL IDENTITY CARD OHULMINOPORSTUVy 01234679012 AE 18 TD This is not your assignment-
REPUBLIC OF SOUTH AFRICA NATIONAL IDENTITY CARD OHULMINOPORSTUVy 01234679012 AE 18 TD This is not your assignment- it is for practice only Resident card validator Write a program that accepts as input a resident identity number of Republic of South Africa The program validates that is a correct identity number. The identity number has this structure: YYMMDDSSSSCAZ (13 characters in length) YYMMDD is the card holder's date of birth. YY is the last 2 digits of the date of birth which is between 1930 and 2029. ssss is a sequence number registered with the same birth date (where females are assigned sequential numbers in the range 0000 to 4999 and males from 5000 to 9999) .C is the citizenship with 0 if the person is a SA citizen, 1 if the person is a permanent resident As 8 or 9. .Z is a checksum and is a digit from 0 to 9. Print a message to show if the resident identity number is valid or not Also print a message to show the card holder's gender (male of female) and citizenship. Example run: Enter the resident identity number: 0112091234085 0112091234085 is a valid number The person is a female and a citizern REPUBLIC OF SOUTH AFRICA NATIONAL IDENTITY CARD OHULMINOPORSTUVy 01234679012 AE 18 TD This is not your assignment- it is for practice only Resident card validator Write a program that accepts as input a resident identity number of Republic of South Africa The program validates that is a correct identity number. The identity number has this structure: YYMMDDSSSSCAZ (13 characters in length) YYMMDD is the card holder's date of birth. YY is the last 2 digits of the date of birth which is between 1930 and 2029. ssss is a sequence number registered with the same birth date (where females are assigned sequential numbers in the range 0000 to 4999 and males from 5000 to 9999) .C is the citizenship with 0 if the person is a SA citizen, 1 if the person is a permanent resident As 8 or 9. .Z is a checksum and is a digit from 0 to 9. Print a message to show if the resident identity number is valid or not Also print a message to show the card holder's gender (male of female) and citizenship. Example run: Enter the resident identity number: 0112091234085 0112091234085 is a valid number The person is a female and a citizern
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
