Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

List the purpose of cross-validation of data.

Answered: 1 week ago

Question

1. Signs and symbols of the map Briefly by box ?

Answered: 1 week ago

Question

Types of physical Maps?

Answered: 1 week ago

Question

Explain Intermediate term financing in detail.

Answered: 1 week ago