Most
of the students are having difficulties in solving the Calendar problems.
Already
many logics are there to solve these kinds of problems, but all these logics
are difficult to understand. So here is
the simple way to solve calendar problems.
In
order to solve these type of problems you must know some codes.
- Year Code
- Month Code
- Day Code
Year Code:-
1600-1699
|
6
|
1700-1799
|
4
|
1800-1899
|
2
|
1900-1999
|
0
|
2000-2099
|
6
|
Month Code:-
Jan
|
Feb
|
Mar
|
April
|
May
|
June
|
July
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
0
|
3
|
3
|
6
|
1
|
4
|
6
|
2
|
5
|
0
|
3
|
5
|
Day Code:-
Sunday
|
Monday
|
Tuesday
|
Wednesday
|
Thursday
|
Friday
|
Saturday
|
0
|
1
|
2
|
3
|
4
|
5
|
6
|
Steps to solve:-
Step 1: Add the
day digit to last two digit of the year.
Step 2: Divide the last two digits of the year by four.
Step 3: Add the Quotient value in step 3 to result
obtain in step 1.
Step 4: Add Month Code and year codes to the result
obtain in step3.
Step 5: Divide the result of step4 by seven.
Step 6: Obtain
the remainder and match with the day code.
Example:-
0 comments:
Post a Comment