1. Engineering
  2. Computer Science
  3. 1write a mips program that asks the user for two...

Question: 1write a mips program that asks the user for two...

Question details

1):Write a MIPS program that asks the user for two number inputs, then have it ask for a type of operations (add, or multiply), perform the operation and output the result.   Stick to integers.  

2):Write a MIPS program that will ask the user for a positive integer (we will call this n ), check if it is positive, if not throw an error.  Iteratively calculate the factorial of that number (assume n is less than 15, there are some issues with factorial calculations with big numbers which we will discuss in class… don’t sign yourself up for those). Recursion is a problem for future assignments

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution