Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to compute the average for any set of numbers. A list of numbers will terminate with a zero. The zero is not

image text in transcribed

Write a program to compute the average for any set of numbers. A list of numbers will terminate with a zero. The zero is not part of the data to be summed or averaged. You need to show the sum of the numbers, the integer average, and the integer remainder. To test your program, use the following set of numbers. 150, -50, 125, 90, 35, -192, 52, 634, 193, 999 -524, 1, 5, 300, 25, 71, 414, 143, 142, 52, -32, 58, 56, 42, -81, 25, 93, 151, 215 Restrictions: The list of numbers must appear in memory locations. You cannot use any type of divide instruction. Your results must be in the following registers: the sum in register eax, the average in register ebx, the remainder in register ecx Write a program to compute the average for any set of numbers. A list of numbers will terminate with a zero. The zero is not part of the data to be summed or averaged. You need to show the sum of the numbers, the integer average, and the integer remainder. To test your program, use the following set of numbers. 150, -50, 125, 90, 35, -192, 52, 634, 193, 999 -524, 1, 5, 300, 25, 71, 414, 143, 142, 52, -32, 58, 56, 42, -81, 25, 93, 151, 215 Restrictions: The list of numbers must appear in memory locations. You cannot use any type of divide instruction. Your results must be in the following registers: the sum in register eax, the average in register ebx, the remainder in register ecx

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 Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

l Develop an organization chart using job families.

Answered: 1 week ago