1 (Number of days in a year) Write a method that returns the number of days in a year using the following header: public static int numberOfDaysInAYear(int year) Write a test program that displays the number of days in year from 2000 to 2020.
2 (Display matrix of 0s and 1s) Write a method that displays ann-by-nmatrix using the following header: Each element is 0 or 1, which is generated randomly. Write a test program that prompts the user to enter n and displays ann-by-nmatrix. Here is a sample run:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here