Write and submit a MIPS Assembly Language program which requests an integer (yea
ID: 3759727 • Letter: W
Question
Write and submit a MIPS Assembly Language program which requests an integer (year) from the user and then invokes a function to determine the beginning date and time of each season. The program must be properly documented which includes in file comments
Basically, the intent is that you store a reference date and time for each Equinox and Solstice. Then, multiply the difference in years by 365 days, 5 hours, and 50 minutes to determine the date and time for the requested year. Suppose that you use 2015 as the reference year. Then it is known that spring began at 5:46 P.M. on March 20 (Julian Date 79). If you want to know when spring begins in 2018, then you would add 1095 days, 15 hours, and 150 minutes and subtract the number of days in 2015, 2016, and 2017 (365, 366, 365).
79(17:46)+1,095(17:30)-1096 = 78(35:16) = 79(11:16)
That gives you 11:16 A.M. on March 20 in 2018 which matches the actual date and time
Explanation / Answer
************need to work on calculating dt and time
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.