due at 6pm on
Write a program that will:
Here are a few sample runs of the program, but it should work for other numbers as well.
Enter month (1-12): 3
Enter day of month: 25
March 25th
Enter month (1-12): 0
ERROR: invalid month
Enter month (1-12): 4
Enter day of month: 31
ERROR: invalid day
Enter month (1-12): 12
Enter day of month: 0
ERROR: invalid day
Enter month (1-12): 11
Enter day of month: 23
November 23rd
Some tips, for getting full credit:
Some examples of the switch
statement, helpful for this assignment, are in the 29 September notes.
Make sure you use appropriate indentation and alignment of braces.
Include a comment at the top with your name and the date.
©2011 Christopher League · some rights reserved · CC by-sa