Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a complete ASSEMBLY program that: 1 . Prompt the user to enter 1 0 numbers. 2 . save those numbers in a 3 2
Write a complete ASSEMBLY 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
ASSEMBLY CODE ;
pls make sure code runs correctly and also displays the output in this exact format, displaying all the rotation of numbers USE IRVINE LIBRARY and follow the following rubric All lines are indented correctly
pts
All lines are shorter than columns
pts
Comments at the top of the program: date what your program does. Name of the student is not there.
pts
The run is included as a comment at the end of your code
pts
Declare and initialize the array. right data size, right number of elements leaving it unitialized
pts
comment before the sum and average calculation parts.
pts
no immediate numbers inside the code segment. type, lengthof and sizeof operators are used instead.
pts
The program is running with no syntax errors and run time errors.
pts
prompting the user to enter elements and saving it in memory.
pts
using loops to carry out the requirements of the program.
pts
using indexed or indirect addressing throughout the code.
pts
calculating the sum and average and displaying them.
pts
rotating the array as required and displaying it after each rotation.
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