Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Why is this code giving an error at div ebx at the calculate and print mean section, pls fix the error and make sure the
Why is this code giving an error at div ebx at the calculate and print mean section, pls fix the error and make sure the code runs correctly output looks exactly like this And DO NOT USE ROTATION LOOP
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
Question : 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.
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