Question: need help writing a MIPS program that will ask the user for a positive integer, check if it is positive, if not throw an error.

need help writing a MIPS program that will ask the user for a positive integer, check if it is positive, if not throw an error. If it is positive it should calculate the factorial of that number. (You can assume the input will be small enough it will actually execute in MARS, so pick a small number for testing like 6! or 7! (Hint: On one hand, most of the answer is in the text book, page 101, but to actually make it work requires a little bit of tinkering, thats the point), you can do this recursively or iteratively. program must work on mars

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!