Answered step by step
Verified Expert Solution
Question
1 Approved Answer
WRITE ASSEMBLY CODE USING IRVINE LIBRARY. READ INTSTRUCTION CAREFULLY. DO NOT USE ROTATION LOOP. NEED OUTPUT EXACTLY THE WAY GIVEN. Write a complete program that:
WRITE ASSEMBLY CODE USING IRVINE LIBRARY. READ INTSTRUCTION CAREFULLY. DO NOT USE ROTATION LOOP. NEED OUTPUT EXACTLY THE WAY GIVEN. Write a complete program that:
Prompt the user to enter numbers.
save those numbers in a bit integer array.
Print the array with the same order it was entered.
Calculate the sum of the numbers and display it
Calculate the mean of the array and display it
Rotate the members in the array forward one position for
times. so the last rotation will display the array in reversed order.
Print the array after each rotation.
check the sample run.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Don't use any shift or rotate instructions which we have not covered
yet. You need to use loops and any kind of addressing.
All you work should be on the original array. Don't make
a copy of the array at any time.
Add comments to make your program easy to read.
check the rubric before you submit.
Sample Run:
Please enter a number:
Please enter a number:
Please enter a number:
Please enter a number:
Please enter a number:
Please enter a number:
Please enter a number:
Please enter a number:
Please enter a number:
Please enter a number:
The sum is:
The mean is:
The original array:
After a rotation:
After a rotation:
After a rotation:
After a rotation:
After a rotation:
After a rotation:
After a rotation:
After a rotation:
After a rotation:
Press any key to continue
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