Jump to content

Feb 29Th Puttinodi Age Ni Govt Vaallu Etla


aakathaai

Recommended Posts

calculate chesthaaru informal ga intlo vallu elagolaa age calculate chestharu kaani govt database lo enter chesetappudu age coloumn lo etta calculate chesi vesthaaru

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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;
}
 
Link to comment
Share on other sites

 

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

Link to comment
Share on other sites

 

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;
}

 

 

brahmam5.gif

Link to comment
Share on other sites

×
×
  • Create New...