This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
This is the assignment and here is the code I have already??? Can someone help me please?
Create a program that prompts the user to enter the month and year. The program will then display the number of days in the month. For example, if the user enters month 8 and year 2007, the program will display "August 2007 has 31 days". Use input dialog boxes and message dialog boxes.
Don't forget that leap year must be part of your calculation. The formula for determining whether a year is leap year is found in your textbook and also on the internet (using a simple Google search). Once you've determined whether you have a leap year, then you can determine how many days are in February.