Q2) Write a MIPS assembly code that does the following:
Read a number of seconds, find out:
- how many days that makes.
- how many hours the remaining seconds make
- how many minutes the remaining seconds make
- how many remaining extra seconds
For example
350000 seconds will make:
4 days
1 hour
13 minutes
20 seconds remaining
Hint: When you divide the total seconds by the number of seconds/day, you get the number of days and
the remainder can be further divided to find the hours, minutes, and seconds (the final remainder).