Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 simulators 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, etc. 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]

The programs output should be similar to given in the following: 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_2

Step: 3

blur-text-image_3

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions