1. Engineering
  2. Computer Science
  3. masm write a program to compute the average for any...

Question: masm write a program to compute the average for any...

Question details

MASM Write a program to compute the average for any set of numbers. A list of numbers will terminate with a zero. 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. 100, -30, 25, 14, 35, -92, 82, 134, 193, 99, -24, 1, -5, 30, 35, 81, 94, 143 Restrictions: The list of numbers must appear in memory locations. You cannot use any type of divide instruction. Your results are to be stored in the following registers: sum in EAX, average in EBX, and remainder in ECX This is in MASM, please help

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution