Question: Code an MIPS assembly program that uses MIPS loop concepts and syntax that will convert and display in the console a Kilometer to Miles conversion
Code an MIPS assembly program that uses MIPS loop concepts and syntax that will convert and display in the console a Kilometer to Miles conversion table for every whole number from 0 Kilometers to 20 Kilometers inclusively AND their Miles equivalents. Here are the program requirements:
In order to receive credit you must complete the above functionality and program using MIPS loops
Be sure to clearly display and appropriately separate all output
Useful information: 1 Mile is equal to 1.609344 Kilometers.
Some useful tips:
Remember that since the conversion number is not an integer you will need to float/double math to perform the conversion (remember the rules and limitation about different number variable types that you should have learned in CIS111)
We printed floats/doubles to the console earlier in the semester...reuse that knowledge
To make things simplier, you do not have to use the float/double register to perform the loop logic (although you could)...you can use a separate integer counter register to track and use in your loop logic statement for the number of loop iterations (don't forget in this approach you would need to update the counter register value and the float register value being converted for each loop iteration)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
