Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will learn how fractions (floating point numbers) are stored in the computer and how to use MIPS assembly language instructions to work with such

image text in transcribed

You will learn how fractions (floating point numbers) are stored in the computer and how to use MIPS assembly language instructions to work with such numbers. In statistics, arithmetic mean (or simply mean, average, or expected value) of a series ao a1, , aN-1 is defined as N-1 i=0 Write an assembly program named average.asm that reads a list of floating point numbers from the keyboard and displays the measure given above on the simulator's console The input specifications are given below: Prompt the user for the number of floating point values that the user will enter. You MUST save this number as in integer or 10 points are deducted from the assignment. Later you will need to convert it to a float. By using a loop, repeatedly prompt the user to enter the floating point numbers. You may read the floating point number the user entered into a floating point register. Assume the format for the number to enter is 3 decimal numbers, one for the integer part and two numbers after the decimal point; e.g. the user may enter 4.29, -5.90, 0.02, etd. For example, given the following input: A [0.11 0.34 1.23 5.34 0.76 0.65 0.34 0.12 0.87 0.56] he program's output should be similar to given in the following: The Mean of A 1.03 Prompt the user for each number separately. An example dialog is How many numbers would you like to average?3 Please enter a 3 digit decimal d.dd: 4.12 Please enter a 3 digit decimal d.dd: 0.99 Please enter a 3 digit decimal d.dd: 1.87 The average is: 2.326666666666

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

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

=+ What is Fridays? Who has an absolute advantage in catching fish?

Answered: 1 week ago