Question: Use Mars: This MIPs program performs the following tasks: Ask the user for a first number Get that number from the keyboard Move that number
Use Mars: This MIPs program performs the following tasks:
Ask the user for a first number
Get that number from the keyboard
Move that number to $t
Ask the user for a second number
Get that number from the keyboard
Move that number to $t
Ask the user for a third number
Get that number from the keyboard
Move that number to $t
Add $t and $t and store the intermediate sum in $t
Now add $t and $t and store the final sum in $s
Print out the results to the user.
An example output of your program should look something like this:
Please enter the first number:
Please enter the second number: Please enter the second number:
The sum of your numbers is:
As always, make sure your code is well structured and well documented
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
