Question: Write a complete program that: 1 . Prompt the user to enter 1 0 numbers. 2 . save those numbers in a 3 2 -
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
include ivrine inc assembly code write in virtual mechine
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
