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
For the same cross-sectional area, which column provides the higher buckling load: a circular bar or a circular tube?
juin [17]

Answer:

Circular tube

Explanation:

Now for better understanding lets take an example

Lets take

Diameter of solid bar= 4\sqrt{2} cm

Outer diameter of tube =6 cm

Inner diameter of tube=2 cm

So from we can say that both tubes have equal cross sectional area.

We know that buckling load is given as P = \dfrac{\pi ^2EI}{L_e^2}      

If area moment of inertia(I) is high then buckling load will be high.

We know that  area moment of inertia(I)

For circular tube I = \dfrac{\pi }{64}(D_o^4-D_i^4)

For circular bar I = \dfrac{\pi }{64}D^4  

Now by putting the values

    For circular tube I=62.83 cm^4

  For circular bar I=50.26 cm^4

So we can say that for same cross sectional area the  area moment of inertia(I) is high for tube as compare to bar.So buckling load  will be higher in tube as compare to bar.

3 0
3 years ago
Exceeding critical mach may result in the onset of compressibility effects such as:______.
klio [65]

Answer:

Sound barrier.

Explanation:

Sound barrier is a sudden increase in drag and other effects when an aircraft travels faster than the speed of sound. Other undesirable effects are experienced in the transonic stage, such as relative air movement creating disruptive shock waves and turbulence. One of the adverse effect of this sound barrier in early plane designs was that at this speed, the weight of the engine required to power the aircraft would be too large for the aircraft to carry. Modern planes have designs that now combat most of these undesirable effects of the sound barrier.

4 0
3 years ago
A round bar of chromium steel, (ρ= 7833 kg/m, k =48.9 W/m-K, c =0.115 KJ/kg-K, α=3.91 ×10^-6 m^2/s) emerges from a heat treatmen
Lerok [7]

Answer:

Q = 424523.22 kw

Explanation:

\rho =7833 kg/m

k = 48.9 W/m - K

c = 0.115 KJ/kg- K

\alpha = 3.91*10^{-6} m^2/s

T_s = 285 degree celcius

T_∞ = 35 degree celcius

velocity of air stream = 15 m/s

D = 40 cm

L = 200 cm

mass flow rate\dot m = \rho AV = 7833 *\frac{\pi}{4} 0.4^2*15

\dot m = 14764.85 kg/s

A_s = \pi DL = \pi 0.4*2 = 2.513 m^2

Q = \dot m C \Delta T = h A_s \Delta T

\dot m C \Delta T = h A_s \Delta T

solving for h

h = \frac{14764.85*0.115*(285-35)}{2.513*(285-35)}

h = 675.6 kw/m^2K

Q = h A_s\Delta T

Q = 675.6*2.513*(285-35)

Q = 424523.22 kw

7 0
3 years ago
A police officer in a patrol car parked in a 70 km/h speed zone observes a passing automobile traveling at a slow, constant spee
Ludmilka [50]

Answer:

S = 0.5 km

velocity of motorist = 42.857 km/h

Explanation:

given data

speed  = 70 km/h

accelerates uniformly = 90 km/h

time = 8 s

overtakes motorist =  42 s

solution

we know  initial velocity u1 of police = 0

final velocity u2 = 90 km/h = 25 mps

we apply here equation of motion

u2 = u1 + at  

so acceleration a will be

a = \frac{25-0}{8}

a = 3.125  m/s²

so

distance will be

S1 = 0.5 × a × t²

S1 = 100 m = 0.1 km

and

S2 = u2 ×  t

S2 = 25  × 16

S2 = 400 m = 0.4 km  

so total distance travel by police

S = S1 + S2

S = 0.1 + 0.4

S = 0.5 km

and

when motorist travel with  uniform velocity

than total time = 42 s

so velocity of motorist will be

velocity of motorist = \frac{S}{t}

velocity of motorist =  \frac{500}{42}  

velocity of motorist = 42.857 km/h

3 0
3 years ago
Is the COP of a heat pump always larger than 1?
Liono4ka [1.6K]

Answer:

Yes

Explanation:

Yes it is true that COP of heat pump always greater than 1.But the COP of refrigeration can be greater or less than 1.

We know that

COP of heat pump=  1 + COP of refrigeration

It is clear that COP can not be negative .So from the above expression we can say that COP of heat pump is always greater than one.  

3 0
3 years ago
Other questions:
  • Suppose a possibly biased die is rolled 30 times and that the face containing
    13·1 answer
  • Using Von Karman momentum integral equation, find the boundary layer thickness, the displacement thickness, the momentum thickne
    14·1 answer
  • After a 65 newton weight has fallen freely from rest a vertical distance of 5.3 meters, the kinetic energy of the weight is
    12·1 answer
  • By efficiency, we generally mean the ratio of the desired output to the required input. That is, efficiency is a measure of what
    7·1 answer
  • A moving-coil instrument, which gives full-scale deflection with 0.015 A has a copper coil having resistance of 1.5 Ohm at 15°C
    7·1 answer
  • ¿Cómo llevan a cabo el lavado ropa?​
    8·1 answer
  • The van der Waals equation is a modification of the ideal gas equation. What two factors does this equation account for? A. (1)
    6·1 answer
  • Advanced manufacturing does NOT serve the transportation, communications, or medical industries. Is this statement TRUE or FALSE
    11·2 answers
  • During delivery of a 2023 ariya equipped with propilot assist 2. 0, what should you point out to your customers about the turn s
    12·1 answer
  • When starting up a dual fuel system, the temperature rise method for determining airflow cannot be used with the compressor cycl
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!