ARRAYS (The result should be as the image provided!) 3. Population In the Lithuanian register, the personal identification code data of the population is stored in the format SYYMMDDXXXX. Here: S- Gender: 3 (male, 1900-1999), 4 (female, 1900-1999), 5 (male, 2000-), 6 2000-), YY is the last two digits of the year of birth (00, 01, 02, 03, MM - month of birth number (01, 02, 03, ... 11, 12), DD - number of the date of birth (01.02, 03, ... 30, 31), XXXX - registration number (0001 ... 9999). Make a program that will find the dates of birth
C++ ARRAYS (The result should be as the image provided!)
3. Population
In the Lithuanian register, the personal identification code data of the population is stored in the format SYYMMDDXXXX.
Here:
S- Gender: 3 (male, 1900-1999), 4 (female, 1900-1999), 5 (male, 2000-), 6 2000-),
YY is the last two digits of the year of birth (00, 01, 02, 03,
MM - month of birth number (01, 02, 03, ... 11, 12),
DD - number of the date of birth (01.02, 03, ... 30, 31),
XXXX - registration number (0001 ... 9999).
Make a
The first line of the source data file contains the personal codes n (1 <n < 3000). Next, each line contains one code.
Step by step
Solved in 2 steps