
You are to develop a Case Study for a program that prompts the user for a positive integer N, then a series of N dates. For each date, the program displays the day of the week on which that date occurs.
Input.
The date inputs will be of the form Aug 10 2000.
The month will be entered as a 3-letter enumeration literal (Jan, Feb, etc).
The day will be entered as an integer in the predefined subtype Ada.Calendar.Day_Number.
The year will be entered as an integer in the predefined subtype Ada.Calendar.Year_Number.
Output.
The program outputs will be of the form 10.VIII.2000 is on Thursday.
The day of the week ("Thursday") will be displayed as a string, not an enumeration value, so we can get the first character in uppercase. Hint: use a multialternative IF/ELSIF statement to decide which string to display.
The month will be displayed as an enumeration type of roman numerals. The roman numerals for 1 thru 12 are I, II, III, IV, V, VI, VII, VIII, IX, X, XI, and XII.
The day of the month and year will be displayed as Integers.
To find the day of the week, use the package DayWeek in the programs51 directory. The specification is in dayweek.ads; the body is in dayweek.adb. You will need to compile the specification, then the body, of this package in order to use it. This package is not in the book, but it is online in the programs51 directory. A simple program, DayTest, that demonstrates the package is in daytest.adb.
Of course Ada.Calendar does not need to be compiled; it is part of the Ada system libraries.
As usual, submit the Case Study document, a printout of the listing file, and a test run executed with turnin.