isLeapYear : returns a true or false value as to wether or not a year is considered a leap year
firstDayOfYear : returns the value of the day of the week (starting with 0 = Sunday) a year begins with
dayOfYear : returns the numbered day of the year when given a certain day, month, and year. For example, February 1st is the 32nd day of any year.
numberOfLeapYears : When given two years, returns the number of leap years between and including those years
dayOfWeek : Returns the value of the day of the week when given a specific day, month, year.
Test and use VSCode Debugger in development
Further Issues I encountered
I accidentally kept the method for setting the First Day of Year as private. With this, I was not able to access this method outside of it’s own class, and the postman output was not functioning correctly.
I failed to include a default return statement in my switch case loop for the First Day Of the Year. The execution got at a spot where the method ends but there is no "return" statement.
This was a stupid mistake, but I actually didn’t use this method in the project as of this point. Obviously, this was going to cause a local error.
Personal Score: 2.7/3, Teacher Score: 2.8/3
Requirements:
Postman Outputs
isLeapYear : returns a true or false value as to wether or not a year is considered a leap year
firstDayOfYear : returns the value of the day of the week (starting with 0 = Sunday) a year begins with
dayOfYear : returns the numbered day of the year when given a certain day, month, and year. For example, February 1st is the 32nd day of any year.
numberOfLeapYears : When given two years, returns the number of leap years between and including those years
dayOfWeek : Returns the value of the day of the week when given a specific day, month, year.
Test and use VSCode Debugger in development
Further Issues I encountered
I accidentally kept the method for setting the First Day of Year as private. With this, I was not able to access this method outside of it’s own class, and the postman output was not functioning correctly.
I failed to include a default return statement in my switch case loop for the First Day Of the Year. The execution got at a spot where the method ends but there is no "return" statement.
This was a stupid mistake, but I actually didn’t use this method in the project as of this point. Obviously, this was going to cause a local error.