Computer Science 605.204
Lab Assignment 3
Write a main program for the MIPS machine that uses syscall to repeatedly prompt the user to input a decimal integer value from the keyboard that specifies a day of the year.
The program should reject the day number if it is outside the range 1 to 365, that is, leap years are ignored. For each valid day number that is entered, the program should display the name of the corresponding month and the day of the month. For example, if the day number entered is 1, the corresponding month and day would be January 1. A day number of 364 would correspond to December 30. The diagram below shows a sample execution of the program:
Make sure that you include a comment block at the head of the source file that specifies your name and explains the purpose of the program. Also comment the code to make it easier to read and follow the program logic. After you have written and tested your program using the SPIM simulator, submit a text-only version of the source code through the assignments are within the course web site. Use yourname3.s (note the .s extension) as the filename for the attachment.