Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This chapter covers methods. Need java code. Thanks. Write a method that calculates and finds out i. The day of the week the user's date
This chapter covers methods. Need java code. Thanks.
Write a method that calculates and finds out i. The day of the week the user's date of birth falls on (Sun 1, Mon 2, Tues 3, ...). Then your method calls another method to calculate and find out whether the year of the same user's birth was a leap year or not. If the user's DoB was May 13, 1998 I expect your code will display, The year 1998 is a leap year? True or False: False May 13, 1998 fell on day number 4 ii. Extra credit point if your method can distinguish a future dates from a dates in the past and adjust the message accordingly. If the user's DoB was May 13, 1998 I expect your code will display, The year 2020 will be a leap year? True or False: True May 13, 2020 will fall on day number 4 ii. Extra credit point if your method can call another method to find out what day Easter Sunday feel/ will falls for the same year given above. The formula for calculating Easter Sunday can be found or http://www.whydomath.org/Reading Room_Material/ian stewart/200003.ht mlStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started