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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started