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
coldgirl [10]
3 years ago
13

Write an ALP to separate odd and even numbers from an array of N numbers; arrange odd

Engineering
1 answer:
Marta_Voda [28]3 years ago
6 0

Below is the program to separate odd and even numbers                                  

<u>Explanation</u>:

<u>L1:</u>

         mov ah,00

         mov al,[BX]

         mov dl,al

         div dh

         cmp ah,00

         je EVEN1

         mov [DI],dl

         add OddAdd,dl

         INC DI

         INC BX

         Loop L1

         jmp CAL

    <u>EVEN1:</u>

         mov [SI],dl

         add Even Add,dl

         INC SI

         INC BX

         Loop L1

    <u>CAL:   </u>  

         mov ax,0000

         mov bx,0000

         mov al,OddAdd

         mov bl,EvenAdd

         MOV  ax,4C00h

         int 21h

end

The above program separates odd and even numbers from the array using 8086 microprocessor. It has odd numbers in 2000h and even numbers in 3000h.

You might be interested in
We have a tube with a diameter of 5 inches that is 1 foot long. The tube then reduces the diameter to 3 inches. According to the
Ksju [112]
Can I get a picture? Of the question so I can understand it more?
6 0
2 years ago
Read 2 more answers
In your opinion...
ch4aika [34]

Answer:no

TTHANLS FOR FREE POINTS

Explanation:

8 0
2 years ago
For a steel alloy it has been determined that a carburizing heat treatment of 15 h duration will raise the carbon concentration
Amiraneli [1.4K]

Answer:

135 hour

Explanation:

It is given that a carburizing heat treatment of 15 hour will raise the carbon concentration by 0.35 wt% at a point of 2 mm from the surface.

We have to find the time necessary to achieve the same concentration at a 6 mm position.

we know that \frac{x_1^2}{Dt}=constant where x is distance and t is time .As the temperature is constant so D will be also constant

So \frac{x_1^2}{t}=constant

then \frac{x_1^2}{t_1}=\frac{x_2^2}{t_2} we have given x_1=2 mm\ ,t_1=15 hour\ ,x_2=6\ mm and we have to find t_2 putting all these value in equation

\frac{2^2}{15}=\frac{6^2}{t_2}

so t_2=135\ hour

5 0
3 years ago
Ai r is compressed by a 30-kW compressor from P1 to P2. The air t emperature i s maintained constant at 25oC during thi s proces
RUDIKE [14]

Answer:

The rate of entropy change of the air is -0.10067kW/K

Explanation:

We'll assume the following

1. It is a steady-flow process;

2. The changes in the kinetic energy and the potential energy are negligible;

3. Lastly, the air is an ideal gas

Energy balance will be required to calculate heat loss;

mh1 + W = mh2 + Q where W = Q.

Also note that the rate of entropy change of the air is calculated by calculating the rate of heat transfer and temperature of the air, as follows;

Rate of Entropy Change = -Q/T

Where Q = 30Kw

T = Temperature of air = 25°C = 298K

Rate = -30/298

Rate = -0.100671140939597 KW/K

Rate = -0.10067kW/K

Hence, the rate of entropy change of the air is -0.10067kW/K

3 0
3 years ago
.) If the charges attracting each other in the problem above have equal magnitude, what is the magnitude of each charge?
Sedaia [141]

Answer:

Not seeing any other information, the best answer I can give is 2m.

Explanation:

M = magnitude

You see, if they have an equal charge, and you add them, it'd be 2 * m, or 2m.

8 0
3 years ago
Other questions:
  • The popularity of orange juice, especially as a breakfast drink, makes it an important factor in the economy of orange-growing r
    14·1 answer
  • R 134a enters a air to fluid heat exchanger at 700 kPa and 50 oC. Air is circulated into the heat exchanger to cool the R134a to
    6·1 answer
  • Which of the following is an example of an iterative process?
    12·1 answer
  • A parallel circuit with two branches and an 18 volt battery. Resistor #1 on the first branch has a value of 220 ohms and resisto
    7·1 answer
  • For a copper-silver alloy of composition 25 wt% Ag-75 wt% Cu and at 775°C (1425°F) do the following:
    15·1 answer
  • What was the first roblox player A.bob B.roblox C.builderman
    5·2 answers
  • . Which of the following formula is used for calculating current:
    15·1 answer
  • The complexity of bfs and dfs
    11·1 answer
  • Principals of Construction intro
    11·1 answer
  • In-------process the hot drawn bar or rod is pulled through the die.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!