Question: MASM x86 assembly language only You will generate the set of numbers and the numbers you generate has a pattern. Starting at 0, the next

MASM x86 assembly language only

You will generate the set of numbers and the numbers you generate has a pattern. Starting at 0, the next number in the patter is three greater than the last number, then the next number is eight greater then the last, then the last number is 5 greater then the last, then the pattern starts over, 3, 8, 5. Each next number in the patter increases by 3 then the next by 8 then the next by 5.

Ex generated: 0 3 11 16 19 22 30 35 .

So you are to write a program to generate the set of numbers using the repeating pattern described above. Generate the list of numbers stopping when the last value is greater than 400. You are then to calculate the sum and the average of the set of numbers. (I dont know how many numbers there are from 0 to 400, nor do you, but your program will count the number of value.

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!