ok here we go this is the one part of the program:
"public static boolean isLeapYear(int year)
Returns true if and only if year is a leap year. A year is a leap year if it is a multiple of 400 or if
it is a multiple of 4 but not a multiple of 100."
i am acutally more of the hardwar/software guy, if anybody need help with their computer regarding anything let me know, i will happy to assist you .Code:public class Project { public static void main(String[] args) { assert !isLeapYear(1900); assert isLeapYear(1984); assert !isLeapYear(1985); assert isLeapYear(2000); } /** * Returns true if and only if year is a leap year. A year is a leap * year if it is a multiple of 400 or if it is a multiple of 4 but * not a multiple of 100. */ public static boolean isLeapYear(int year) { // this takes care of the first condition... if (year % 400 == 0) return true; // this takes care of the second condition... if ((year % 4 == 0) && (year % 100 != 0)) return true; // if neither of the conditions above are true, then we know our // year is not a leap year. return false; } }
please i have not much knowlege how to write this program pls help me finish this program, i really aperciate you helps thanks




Reply With Quote