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. ]
1
Expert's answer
2012-04-05T11:06:17-0400
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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment