Question: Fraction computation: Using successive integer multiplications and divisions, write a MIPS program that divides an integer x by another integer y that are read as

Fraction computation: Using successive integer multiplications and divisions, write a MIPS program that divides an integer x by another integer y that are read as input. The result of the division should be in the form: a.b, where a is the integer part and b is the fractional part. Compute the fraction b with 8 digits after the decimal point. Display the result in the form a.b
Enter integer x: 9
Enter integer y: 2
Result =4.50000000
Enter integer x: 8
Enter integer y: 2
Result =4.00000000
Enter integer x: 1125
Enter integer y: 1000
Result =4.12500000

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!