Question: Write a program in assembly that calculates the sum of squares of all the numbers of a floating point array that are less than the

Write a program in assembly that calculates the sum of squares of all the numbers of a floating point array that are less than the user input. Assume you defined an array with 10 floating point elements in your program and you ask the user for a real number. The result will be shown in the output with an appropriate message. If there are no numbers less than the user input in the array provide an appropriate message.

Use array A=[12.5 2.34 3.59 4.76 10.67 3.54] as the floating point array.

For example:

Please give a real number: 4.5

The answer is: 30.8953 ( = 2.34^2 + 3.59^2 +3.54^2 )

code in mips please

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!