Geeks Talk

Prepare for your Next Interview




Is year "2100" leap year?

This is a discussion on Is year "2100" leap year? within the Brainteasers forums, part of the Brain Gym category; I say 2100 is not a leap year? can anybody give the reason....


Go Back   Geeks Talk > Brain Gym > Brainteasers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-27-2007
Junior Member
 
Join Date: Dec 2007
Location: Mumbai
Posts: 6
Thanks: 2
Thanked 1 Time in 1 Post
Harry1981 is on a distinguished road
Is year "2100" leap year?

I say 2100 is not a leap year? can anybody give the reason.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-27-2007
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 859
Thanks: 12
Thanked 77 Times in 64 Posts
jainbrijesh is on a distinguished road
Re: Is year "2100" leap year?

Year numbers ending in 00 must also be evenly divisible by 400 in order to be decide for leap year
__________________
Brijesh Jain
brijesh.tester@gmail.com
http://softwaretestingexpertise.blogspot.com

Last edited by jainbrijesh : 12-27-2007 at 07:28 AM.
Reply With Quote
The Following User Says Thank You to jainbrijesh For This Useful Post:
  #3 (permalink)  
Old 12-27-2007
Junior Member
 
Join Date: Dec 2007
Location: Mumbai
Posts: 6
Thanks: 2
Thanked 1 Time in 1 Post
Harry1981 is on a distinguished road
Re: Is year "2100" leap year?

Hey Brijesh, thanks for your explanation, according to gregorian calender the 2100 is not a leap year, but 2000, 1600, ... are leap years.

Last edited by Harry1981 : 12-27-2007 at 08:13 AM.
Reply With Quote
  #4 (permalink)  
Old 12-28-2007
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 859
Thanks: 12
Thanked 77 Times in 64 Posts
jainbrijesh is on a distinguished road
Re: Is year "2100" leap year?

Quote:
Originally Posted by Harry1981 View Post
Hey Brijesh, thanks for your explanation, according to gregorian calender the 2100 is not a leap year, but 2000, 1600, ... are leap years.
yes, you are right, but concept is same.

2000 and 1600 give remainder "0" on dividing by 400, so they are leap year.

whereas 2100 not.
__________________
Brijesh Jain
brijesh.tester@gmail.com
http://softwaretestingexpertise.blogspot.com
Reply With Quote
  #5 (permalink)  
Old 12-28-2007
Junior Member
 
Join Date: Dec 2005
Location: KOLKATA
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Atanu is on a distinguished road
Re: Is year "2100" leap year?

no i don't think so
Reply With Quote
  #6 (permalink)  
Old 12-28-2007
Moderator
 
Join Date: Sep 2007
Location: Chennai, INDIA
Posts: 406
Thanks: 2
Thanked 138 Times in 80 Posts
sridharrganesan will become famous soon enoughsridharrganesan will become famous soon enough
Re: Is year "2100" leap year?

Hi Atanu,

The year 2100, 2200, 2300 were not leap years. See the below mentioned points regarding Leap Year.

- The Gregorian calendar is designed to keep the vernal equinox on or close to March 21, so that the date of Easter (celebrated on the Sunday after the 14th day of the Moon that falls on or after 21 March) remains correct with respect to the vernal equinox.
- The vernal equinox year is currently about 365.242375 days long.
- The Gregorian leap year rule gives an average year length of 365.2425 days.

This marginal difference of 0.000125 days means that in around 8,000 years, the calendar will be about one day behind where it should be. But in 8,000 years, the length of the vernal equinox year will have changed by an amount which can not be accurately predicted. Therefore, the current Gregorian calendar suffices for practical purposes.

In case if you need to get more details you check this Link for details regarding Gregorian calendar.

Last edited by sridharrganesan : 12-28-2007 at 03:53 AM.
Reply With Quote
  #7 (permalink)  
Old 12-29-2007
Junior Member
 
Join Date: Dec 2007
Location: India
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
harveykumar is on a distinguished road
Re: Is year "2100" leap year?

Hi guys sounds great,
Your solutions are too technical
the simplest solutions is when u add the digits u get an odd number so it is not a leap year
And also i am not saying that all the years that end with the even sum are leap year

this is one of the simplest way to find whether a year is a leap year or not
Reply With Quote
The Following User Says Thank You to harveykumar For This Useful Post:
  #8 (permalink)  
Old 01-22-2008
Junior Member
 
Join Date: Jan 2008
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
karanampramod is on a distinguished road
Re: Is year "2100" leap year?

hi frndz,

always a century year should be divisible by 400 to be a leap year.
Reply With Quote
  #9 (permalink)  
Old 03-22-2008
Junior Member
 
Join Date: Mar 2008
Location: INDIA
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
LJanardhan is on a distinguished road
Re: Is year "2100" leap year?

Hi everybody
We get a leap year every 4 years. But over a span of 100 there will be an excess of 1day.
So 1day is reduced, but this reduction of 1day in every 100 years makes a day less over a span of 400 years. So again a day is added to make it a leap year.
As 2100 is not divisible by 400 it is not a leap year whereas 2000, 1600 are leap years.
Reply With Quote
  #10 (permalink)  
Old 05-10-2008
Junior Member
 
Join Date: May 2008
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
majety.chakri is on a distinguished road
Re: Is year "2100" leap year?

thanq harvey for ur logic
Reply With Quote
  #11 (permalink)  
Old 3 Days Ago
Junior Member
 
Join Date: Jul 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
mahesh_venkat36 is on a distinguished road
Re: Is year "2100" leap year?

ya the answer is that 2100 should be divisible by 400 but here it fails
hence 2100 is not a leap year
Reply With Quote
Reply

  Geeks Talk > Brain Gym > Brainteasers


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Try this to Test for Leap Year sreekumar_nair_it Oracle 2 12-12-2007 06:43 AM
systemutil.run "IEplore.exe","URL" is opening 2 browsers Geek_Guest QTP 2 10-09-2007 05:01 AM
difference b/w "group by" and "order by" ? jainbrijesh SQL 9 07-07-2007 01:40 AM
How to calculate Leap Year in Cognos? Geek_Guest Data Warehousing 0 06-22-2007 10:16 AM
Business Objects - parsed failed "ORA-00936: missing expression :-936" JobHelper Data Warehousing 0 02-11-2007 05:06 AM


All times are GMT -4. The time now is 09:10 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved