1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
sergey [27]
3 years ago
15

Write a complete program in Assembly Language: 1. Promts the user to enter 10 numbers. 2. saves those numbers in a 32 bit intege

r array. 3. Calculates the sum of the numbers and displays it. 4. Calcualtes the mean of the array and displays it. 5. Prints the array with the same order it was enterd. 6. Rotates the members in the array forward one position for 9 times. so the last rotation will display the array in reversed order. Print the array after each rotation. check the sample run. Here is Sample Run: Please enter a number: 2 Please enter a number: 3 Please enter a number: 4 Please enter a number: 5 Please enter a number: 6 Please enter a number: 7 Please enter a number: 8 Please enter a number: 9 Please enter a number: 0 Please enter a number: 10 The sum is: 54 The mean is: 5 4/10 The original array: 2 3 4 5 6 7 8 9 0 10 After a rotation: 10 2 3 4 5 6 7 8 9 0 After a rotation: 10 0 2 3 4 5 6 7 8 9 After a rotation: 10 0 9 2 3 4 5 6 7 8 After a rotation: 10 0 9 8 2 3 4 5 6 7 After a rotation: 10 0 9 8 7 2 3 4 5 6 After a rotation: 10 0 9 8 7 6 2 3 4 5 After a rotation: 10 0 9 8 7 6 5 2 3 4 After a rotation: 10 0 9 8 7 6 5 4 2 3 After a rotation: 10 0 9 8 7 6 5 4 3 2 Press any key to continue . . .

Computers and Technology
2 answers:
Troyanec [42]3 years ago
6 0

Answer:

.model small

.stack 100h

.data

prompt db 13, 10, 'First number:','$'

prompt db 13,10, 'Second number:', '$'

result db 13, 10, 'Sum','$'

Explanation:

See attach image

Delicious77 [7]3 years ago
5 0

Answer: provided in the explanation section

Explanation:

i hope this helps.

DATA SEGMENT

ARRAY DB 1,4,2,3,8,6,7,5,9

AVG DB ?

MSG DB "AVERAGE = $"

ENDS

CODE SEGMENT

ASSUME DS:DATA CS:CODE

START:

MOV AX,DATA

MOV DS,AX

LEA SI,ARRAY

LEA DX,MSG

MOV AH,9

INT 21H

MOV AX,00

MOV BL,9

MOV CX,9

LOOP1:

ADD AL,ARRAY[SI]

INC SI

LOOP LOOP1

DIV BL

ADD AL,30H

MOV DL,AL

MOV AH,2

INT 21H

MOV AH,4CH

INT 21H

ENDS

END START

cheers i hope this helps!!!

You might be interested in
Que cambiaría personalmente en esos momentos de cuarentena​
Natali5045456 [20]
No poder salir sin estar con la duda de que si una persona con la que estas cercas tendría el virus , no poder visitar a ciertas personas
6 0
4 years ago
You work for a large company. You need to implement a backup solution for your company that will allow you to perform multiple b
Scrat [10]

Answer:

A Tape Library

Explanation:

A tape library, sometimes called a tape silo, tape robot or tape jukebox, is a storage device that contains one or more tape drives, a number of slots to hold tape cartridges, a barcode reader to identify tape cartridges and an automated method for loading tapes. It Enables faster data migrations, reduce the complexity of and increase the frequency of backups, and streamline governance in a secure and cost-effective way.

6 0
3 years ago
Blank Are input instructions you give to a computer
kotegsom [21]

Explanation:

A computer is a machine that can be programmed to accept data (input), process it into useful information (output), and store it away (in a secondary storage device) for safekeeping or later reuse. The processing of input to output is directed by the software but performed by the hardware.

4 0
3 years ago
Releasing refrigerant R-12 into the atmosphere is a criminal offense
nevsk [136]
I'm guessing you want a yes or no... I think yes.
8 0
4 years ago
Read 2 more answers
Hãy mô tả mô hình xử lý của hệ thống thông <br> tin kế toán tài chính trong một doanh nghiệp
GrogVix [38]
Yes because it’s the square size of life
6 0
3 years ago
Other questions:
  • A ________ pays out cash flows from a collection of assets in different tranches, with the highest-rated tranch paying out first
    8·1 answer
  • Assume that the following code exists inside a method of SomeClass, and that this code compiles without errors:
    13·1 answer
  • In Windows Vista, the Run command can be found in which application?
    6·1 answer
  • Provide a few examples of how cryptography actually secures data.
    8·1 answer
  • The following is an example of what kind of loop?
    15·2 answers
  • What did Adam and Eve look like?
    7·2 answers
  • 14. For the declaration, int a[4] = {1, 2, 3};, which one is right in the following description-
    12·1 answer
  • In cell B13, create a formula without a function using absolute references that subtracts the values of cells B5 and
    13·1 answer
  • How is technology moving the business world forward?
    13·1 answer
  • When evaluating an AND operator, what is necessary for execution?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!