aakathaai Posted February 4, 2016 Report Posted February 4, 2016 calculate chesthaaru informal ga intlo vallu elagolaa age calculate chestharu kaani govt database lo enter chesetappudu age coloumn lo etta calculate chesi vesthaaru
mustang302 Posted February 4, 2016 Report Posted February 4, 2016 aa case ki kooda code rastaru gaa ..report ela generate avvalo..if leap yr enter itae ani DOB column lo..simple..!!
Balibabu Posted February 4, 2016 Report Posted February 4, 2016 for every problem there is a solution with some condition and logical code kada
aakathaai Posted February 4, 2016 Author Report Posted February 4, 2016 aa case ki kooda code rastaru gaa ..report ela generate avvalo..if leap yr enter itae ani DOB column lo..simple..!! aa logic etta raastharoo idea undaa
aakathaai Posted February 4, 2016 Author Report Posted February 4, 2016 for every problem there is a solution with some condition and logical code kada telusuraa kani coding lo emani raastharo thelsukundamani adigaraa
Balibabu Posted February 4, 2016 Report Posted February 4, 2016 telusuraa kani coding lo emani raastharo thelsukundamani adigaraa else if (year % 400 == 0)
Balibabu Posted February 4, 2016 Report Posted February 4, 2016 private boolean isLeapYear() { // No leap years occured before 1582 because that is when they were added to the calendar if(year > 1582) { // All code past here only executed when year mod 4 is true if(year % 4 != 0) { return false; } // Makes sure that it does not register the beginning of centuries as leap years // unless they actually are. else if(year % 100 == 0 && year % 400 != 0) { return false; } // Also is the same as checking for mod 4 and mod 100, since they are factors of 400 else if(year % 400 == 0) { return true; } else { return true; } } return false; }
mustang302 Posted February 4, 2016 Report Posted February 4, 2016 private boolean isLeapYear() { // No leap years occured before 1582 because that is when they were added to the calendar if(year > 1582) { // All code past here only executed when year mod 4 is true if(year % 4 != 0) { return false; } // Makes sure that it does not register the beginning of centuries as leap years // unless they actually are. else if(year % 100 == 0 && year % 400 != 0) { return false; } // Also is the same as checking for mod 4 and mod 100, since they are factors of 400 else if(year % 400 == 0) { return true; } else { return true; } } return false; } CITI_c$y
aakathaai Posted February 4, 2016 Author Report Posted February 4, 2016 private boolean isLeapYear() { // No leap years occured before 1582 because that is when they were added to the calendar if(year > 1582) { // All code past here only executed when year mod 4 is true if(year % 4 != 0) { return false; } // Makes sure that it does not register the beginning of centuries as leap years // unless they actually are. else if(year % 100 == 0 && year % 400 != 0) { return false; } // Also is the same as checking for mod 4 and mod 100, since they are factors of 400 else if(year % 400 == 0) { return true; } else { return true; } } return false; }
Recommended Posts