Question: Create a MIPS asm program that requests for three numbers from the user. Month, Day, and Year. You may assume that a valid date is

Create a MIPS asm program that requests for three numbers from the user. Month, Day, and Year. You may assume that a valid date is given. Your program will return the DAY number of the year. Your program should accurately calculate leap years. Your program function should accept the month (1 through 12), day, and year as unsigned integers. As an example, January 1, 1994 is day 1. December 31, 1993 is day 365. December 31, 1996 is day 366 since 1996 is a leap year. A year is a leap year if its divisible by four, except that any year divisible by 100 is a leap year only if its also divisible by 400.

Program MUST use recursive for the modulo and be a MIPS asm program! This is for an entry level class! Please add comments so that I may fully understand what is going on in the program, Thank you!

Here is an example output, the output should match this:

Month: 1

Day: 1

Year: 1995

1

Month: 12

Day: 31

Year: 1996

366

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!