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
What is the steady-state value of the output of a system with transfer function G(s)= 6/(12s+3), subject to a unit-step input?
fenix001 [56]

Answer:

At steady state output will be 2

Explanation:

We have given transfer function G(S)=\frac{6}{12S+3}

Input is unit step so X(S)=\frac{1}{S}

We know that G(S)=\frac{Y(S)}{X(S)}, here Y(S), is output

So output Y(S)=G(S)\times X(S)

Y(S)=\frac{1}{S}\times \frac{6}{12S+3}

Taking 12 common from denominator

Y(S)=\frac{1}{2S(S+\frac{1}{4})}

Now using partial fraction

\frac{1}{2S(S+\frac{1}{4})}=\frac{A}{2S}+\frac{B}{(S+\frac{1}{4})}

\frac{1}{2S(S+\frac{1}{4})}=\frac{A(S+\frac{1}{4}+2BS)}{2S(S+\frac{1}{4})}

AS+\frac{A}{4}+2BS=1

On comparing coefficient A=4 and B = -2

Putting the values of A and B in Y(S)

Y(S)=\frac{4}{2S}-\frac{2}{S+\frac{1}{4}}

Now taking inverse la place

y(t)=2-2e^{\frac{-t}{4}}

Steady state means t tends to infinite

So output at steady state = y(t)=2-2e^{\frac{-\infty}{4}}

y(t)=2-0=2  

3 0
3 years ago
When the outside temperature is 5.2 ⁰C, a steel beam of cross-sectional area 52 cm2 is installed in a building with the ends of
il63 [147K]

Multiply the coefficient by the change in temperature:

1.1*10^-5 x (37-5.2) = 0.0003498

Multiply Young's modulus by the area by the above answer:

2*10^11 x 52 * 0.0003498 x (1/100)^2 = 3.63792 x 10^5 N

6 0
3 years ago
g An analog voice signal, sampled at the rate of 8 kHz (8000 samples/second), is to be transmitted by using binary frequency shi
slamgirl [31]

Answer:

The module is why it’s goin to work

Explanation:

4 0
3 years ago
Suppose the loop is moving toward the solenoid (to the right). Will current flow through the loop down the front, up the front,
Tems11 [23]

Answer:

See explanation

Explanation:

The magnetic force is

F = qvB sin θ

We see that sin θ = 1, since the angle between the velocity and the direction of the field is 90º. Entering the other given quantities yields

F

=

(

20

×

10

−

9

C

)

(

10

m/s

)

(

5

×

10

−

5

T

)

=

1

×

10

−

11

(

C

⋅

m/s

)

(

N

C

⋅

m/s

)

=

1

×

10

−

11

N

6 0
3 years ago
Read 2 more answers
The thrust angle is checked by referencing
anygoal [31]

In Engineering, the thrust angle is checked by referencing: C. vehicle centerline.

<h3>What is a thrust angle?</h3>

A thrust angle can be defined as an imaginary line which is drawn perpendicularly from the centerline of the rear axle of a vehicle, down the centerline.

This ultimately implies that, the thrust angle is a reference to the centerline (wheelbase) of a vehicle, and it confirms that the two wheels on both sides are properly angled within specification.

Read more on thrust angle here: brainly.com/question/13000914

#SPJ1

5 0
2 years ago
Other questions:
  • Technician A says that you don’t need to use an exhaust extraction system when working on vehicles equipped with a catalytic con
    9·1 answer
  • I dont undertand this coding problem (Java):
    8·1 answer
  • To prevent hydroplaning, _____. A. slow down B. speed up C. deflate your tires D. use cruise control
    15·1 answer
  • An AC sine wave has an effective value of 100V what’s the peak value of the waveform
    6·1 answer
  • Technician A says that the first step in diagnosing engine condition is to perform a thorough visual inspection. Technician B sa
    8·1 answer
  • WhT DO FILM PRODUTION SAY WHEN REMOVING GREEN AND BLUE SCREENS.
    14·1 answer
  • A plane wall, 7.5 cm thick, generates heat internally at the rate of 105W/m3. One side of the wall is insulated and the other si
    14·1 answer
  • What engine does chrysler 300c have?​
    15·1 answer
  • What energy type is represented in the picture?
    6·2 answers
  • Shelly cashman word 2016 module 2 - project a pdf - does anyone have the fished paper
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!