Question: Please make sure that the program actually runs before submitting. The assignment is to create a MIPS program that demonstrates that the associative law fails

Please make sure that the program actually runs before submitting.

The assignment is to create a MIPS program that demonstrates that the associative law fails in addition for floating point numbers (single or double precision). You only need to demonstrate it for single precision. Remember the associative law is a + (b + c) = (a + b) + c.

Also have a lot of comments in your program as this is an assembly language program. Make the code neat and readable.

The programs output should look something like the following where the xxxs are the numbers you chose. The resulting numbers may be different than mine depending on your choice of a, b, and c.

Using a = xxx, b = xxx, and c = xxx

a + (b + c) = 0

(a + b) + c = 1

The key is to have two of the number large (one positively and one negatively but equal in magnitude) floating point numbers and the third floating point number very small in comparison.

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!