Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started