64 638
Assignments Done
99,2%
Successfully Done
In September 2018

Answer to Question #4715 in Java | JSP | JSF for shiqi

Question #4715
Q3 class:
This class should have at least the following methods:
(i) main():
o Prompts the user for the date in dd/mm/yyyy format and reads the input from the keyboard.
o Calls the method inputValidation() (describe in (ii) below) to validate the date. If the date is valid, calls the method determineDayOfWeek() (describe in (iii) below) to determine the day of the week and display it. Otherwise, catch the exception thrown from the method and display the exception message.
(ii) inputValidation():
o Accepts the three integer values for day, month and year as the parameters.
o Checks whether these values form the correct date. Returns true if so.
[ Correct date has the year between 1900 and 2999, month between 1 and 12 and day according to the month: 30 days for Apr, Jun, Sept, Nov; 28 days for Feb in non-leap year and 29 days for Feb in leap year; 31 days for the other months. A year is a leap year if it is divisible by 4 but not divisible by 100 or divisible by 400. ]
Expert's answer
Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions