Write a program that prompts the user to enter the month and year and displays the number of days in the month. So if the user inputs month 2 and year 2000, it should display as February 2000 has 29 days. If month 3 and year 2005, it should display March 2005 has 31 days.
I found this http://answers.yahoo.com/question/index?qid=20090130140043AAN5zRa
however the program MUST display the month name + year has 29/30/31 days
how do i go about solving this without assigning a numeric value for month?
can I use a switch statement like in the best answer above? how do i go about it to display the message asked? Or is it better to do if else? I'm so lost as to how to go about this problem
I found this http://answers.yahoo.com/question/index?qid=20090130140043AAN5zRa
however the program MUST display the month name + year has 29/30/31 days
how do i go about solving this without assigning a numeric value for month?
can I use a switch statement like in the best answer above? how do i go about it to display the message asked? Or is it better to do if else? I'm so lost as to how to go about this problem