Mrs. Wilkerson noticed that her in-laws’ birth dates have an unusual property. Her mother-in-law was born 5-31-36, and her father-in-law was born 9-25-34. Furthermore, her hus- band’s grandfather was born 7-7-14. How many birth dates in a century have this property, in which the sum of the month and the day equal the value of the last two digits of the birth year?

http://www.jiskha.com/display.cgi?id=1394243341

15,330 dates

To solve this problem, we need to find how many birth dates in a century have the property where the sum of the month and the day equals the value of the last two digits of the birth year.

Let's break down the problem into steps:

Step 1: Determine the range of birth years in the given century.
Since we're dealing with a century, the birth years will range from 1900 to 1999.

Step 2: Iterate through each birth date in the given range.
For each birth date, we'll check if the sum of the month and the day equals the value of the last two digits of the birth year. If it does, we'll count it as a birth date with the desired property.

Step 3: Count the birth dates with the desired property.
As we iterate through each birth date, we'll keep a count of the dates that satisfy the condition mentioned in the problem.

Let's now implement these steps in code:

```python
# Step 1: Determine the range of birth years
start_year = 1900
end_year = 1999

# Step 2: Iterate through each birth date in the range
count = 0

for year in range(start_year, end_year + 1):
# Extract the last two digits of the birth year
last_two_digits = year % 100

# Extract the month and day from the birth date
month = last_two_digits // 10
day = last_two_digits % 10

# Check if the sum of the month and day equals the value of the last two digits of the birth year
if month + day == last_two_digits:
count += 1

# Step 3: Count the birth dates with the desired property
print("Number of birth dates in a century with the given property:", count)
```

Running this code will give you the count of birth dates in a century that have the desired property.