Question: A palindrome date is a date that is the same when read forwards and backwards, e . g . , 0 2 / 0 2
A palindrome date is a date that is the same when read forwards and backwards, eg Write a program that identifies and saves to a file all the palindrome dates in the st century using the DDMMYYYY format. Do not use recursion. Do not use any builtin calendarish packages. To keep things simple, treat leap years as regular years.
Record a threeminute video in which you run the code. Then, present your code. Specifically, answer the following questions:
How did you iterate through the different dates? Did you have to iterate over every possible date or your forloop could be shorter than that?
How did you test if a date was a palindrome date?
How did you write the detected palindrome dates into a text file such that each date is written into a separate line?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
