IUP Computer Science
CO 300   Assembly Language
Fall 1987

Program #2


    January 1, 1987 was a Thursday.  That fact in addition to what you should know about the months of the year and the days in them is going to be important in this program.

    Write a program that displays the day of the week for any given day in the year of 1987.  The program must obtain two input values from the person at the terminal:  the number of the month (for example September is month 9) and the number of the day in that month.  Thus, if the input data values are 9 and 28, it should be interpreted as referring to September 28.  After obtaining this information, the program must determine which day of the week that date is and display a message stating the day of the week.  The message should look like this
     Sep 28 is a Monday
Notice that the abbreviated month name (three letters) and the complete day name appear in the message.  As one more example, if the input data shows month 12 and day 4, the program should display the message
     Dec  4 is a Friday
    Hand in a printout of your commented listing file and a photo log of three or more runs of the program which demonstrate that it works.


    NOTES:  Don't do any error checking on the input values.   That is, you may assume that the person at the terminal will enter reasonable values.  All input for month numbers will be between 1 and 12.  All input for day numbers will be appropriate for the month indicated.  Also, don't make the program loop back and ask repeatedly for the month and day.  The program must act on only one set of input values.