Question: 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

 Write a program to compute the average for any set of

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!