Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

JAVA please Write a program Days.java - Define a method called getDays which tak

ID: 3802349 • Letter: J

Question

JAVA please

Write a program Days.java

- Define a method called getDays which takes 3 integer parameters: month, date and year of date. Calculate and return the day number
(total number of days since Jan 1st) of the year. (Should consider leap year, make use of loop and do not use built in Calendar class)

- Take user input of month, day and year of a date, call getDays method to print the date with full month name and day number of the year.
(can use arrays for month names and number of days in the month)

Please provide sample output as well.

Explanation / Answer

......................................

................................................

code for DateTime: