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
¿Qué podría pasar si los avances tecnológicos cayeran en personas sin formación Ética-Moral?
timurjin [86]

Answer:

If technological advances fall on people without Ethical-Moral training, then life itself would be threatened as our humanity and environment would be destroyed.

Explanation:

Question:

What could happen if technological advances fell on people without Ethical-Moral training?

Morals: Morals refer to human behavior. The principles of right and wrong

Ethics: It is the body of rules and regulations that dictate the conduct of practitioners of a particular profession.

In terms of technology, ethics is viewed in two contexts; if the pace of technological innovation is benefiting the humanity or not; if it is severely empowering people while choking others in the process.

Technology: it is the application of scientific principles for practical purposes of human life. Technology when used properly improves the quality of life of people.

On one hand, technology in itself is said to be neither good nor bad. It is people who determine it's application. With this said, we can infer that if technology falls on the wrong hands, it could be disastrous.

On the other, some technologies like nuclear fission, genetic engineering exert enormous power that their existence raises ethical or moral questions.

The role of ethical training in technological advancement would be to monitor rather than control to ensure fair practices.

Now if technological advances fell on people without ethical-moral training, then life itself would be threatened:

- Cultural breakdown: Almost everything in our day to day lives would depend on technology

- Loss of jobs: this would happen when machines do the work of men

- Inequalities as those with initial access to it would be the rich thereby widening the gap between the rich and poor.

- Exploitation as competition towards Mastery and control increases

- Environmental degradation

5 0
3 years ago
What is the analysis and complexity of a shell sortalgorithms?
Llana [10]

Answer: The shell sort is based on insertion sort. Here the list of elements are divided into smaller sub list which are sorted based on insertion sort.

Its best case time complexity is O(n* logn) and worst case is O(n* log^2 n)

Explanation:

Shell sort is an inplace sorting here we begin by dividing the list into sublist and sorting the list with insertion sort. We create interval for dividing the list into sub list until we reach the smallest interval of 1.

The best case is O(n* logn).

6 0
3 years ago
So my computer has be clicking random things and opening things. It’s been happening for a few days and I want to know if it’s a
soldi70 [24.7K]

Viruses and malware are common and can have drastically negative results on your computer and life.

You can often tell that your computer is infected because it acts weird or slow.

Active antivirus software is a good way to prevent these problems.

4 0
3 years ago
All of the fossils that have been discovered make up the
erastovalidia [21]

Answer:

D. fossil record

Explanation:

When animals and plants died in historical times , in some cases their remains were preserved as imprints on rocks. These constitute fossil records and provide lot of information about evolution of life. These fossil records when arranged chronologically in order of time, constitute a fossil record. Fossil Record provides a very valuable indirect insight about historical times to archaeologists.

6 0
3 years ago
Which domain indicated the website is sponsored by the university or college
Pie

The answer is edu. Hope this helps.


3 0
3 years ago
Other questions:
  • Why is Bot_Seth Trash at video games?
    13·2 answers
  • Type dig www.example A in order to get the IP address of www.example. What’s the TTL of the A record returned in the response? W
    9·1 answer
  • A range of cells can be converted into an Excel ________ so that the data can be analyzed
    7·1 answer
  • Carly is part of a community of developers. In her free time, she works on code to improve this open-source operating system. Th
    11·1 answer
  • Briefly describe the interface between the memory and the processing unit. That is, describe the method by which the memory and
    6·1 answer
  • If the individual accessing the system for disaster recovery purposes were not familiar with the IT system and required system a
    5·1 answer
  • Lines, block arrows, stars, and banners are examples of which of the following
    6·1 answer
  • _________function tells the cin object to skip one or more characters in the keyboard buffer.
    11·1 answer
  • what is cicada 3301? i will give brainliest if you give me a correct answer (not copy and pasted) and somewhat well detailed, i
    8·1 answer
  • What is meant by saving a sheet document​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!