Question
Use Assembly Language x86 1. Prompts the user to enter 5 numbers. 2. saves those numbers in a 32-bit integer array. 3. Calculates the sum
Use Assembly Language x86
1. Prompts the user to enter 5 numbers. 2. saves those numbers in a 32-bit integer array. 3. Calculates the sum of the numbers and displays it. 4. Calculates the mean of the array and displays it. 5. Prints the array in the same order it was entered. 6. Rotates the members in the array backward one position for 5 times. so the last rotation will display the array in original order 7. Print the array after each rotation. check the sample run.
You MUST use a loop and indirect addressing. You MUST use the SIZEOF, TYPE, and LENGTHOF operators to make the program as flexible and possible if the arrays' size and type should be changed in the future. NO IMMEDIATE NUMBERS AT ALL IN THE CODE SEGMENT. .All your work should be on the original array. Don'tmake a copy of the array at any time. Look at the sample run for clarification. Copy paste 2 of your runs at the end of your code Don't use any shift or rotate instruction which we have not coverd yet.
sample run:
Please enter a number: 9 Please enter a number: 56 Please enter a number: 6 Please enter a number: 7 Please enter a number: 3 The mean of the integer array is: 16 1/5 The integer array you entered is: 9 56 6 7 3
The elements after a rotation:
56 6 7 3 9
The elements after a rotation:
6 7 3 9 56
The elements after a rotation:
7 3 9 56 6
The elements after a rotation:
3 9 56 6 7
The elements after a rotation:
9 56 6 7 3
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