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 function of a regulator?
elena55 [62]
The function if I’m not correct just text me but 3
3 0
3 years ago
6.03 Discussion: Then &amp; Now - Safety
34kurt

Answer:

Information technology is important in our lives because it helps to deal with every day's dynamic things. Technology offers various tools to boost development and to exchange information. Both these things are the objective of IT to make tasks easier and to solve many problems.

6 0
3 years ago
1.The moist unit weights and degrees of saturation of a soil are given: moist unit weight (1) = 16.62 kN/m^3, degree of saturati
alexandr1967 [171]

Answer:

Gs = 2.647

e = 0.7986

Explanation:

We know that moist unit weight of soil is given as

\gamma_m \ or\ bulk\ density = \frac{(Gs+Se)\times \gamma_w}{(1+e)}

where,  \gamma_m = moist unit weight of the soil

Gs = specific gravity of the soil

S = degree of saturation

e = void ratio

\gamma_w = unit weight of water = 9.81 kN/m3

From data given we know that:

At 50% saturation,\gamma_m = 16.62 kN/m3

puttng all value to get Gs value;

16.62= \frac{(Gs+0.5*e)\timees 9.81}{(1+e)}

Gs - 1.194*e = 1.694 .........(1)

for saturaion 75%, unit weight = 17.71 KN/m3

17.71 = \frac{(Gs+0.75*e)\times 9.81}{(1+e)}

Gs - 1.055*e = 1.805 .........(2)

solving both  equations (1) and (2), we obtained;

Gs = 2.647

e = 0.7986

6 0
3 years ago
A part made from annealed AISI 1018 steel undergoes a 20 percent cold-work operation. Obtain the yield strength and ultimate str
Charra [1.4K]

Answer:

yield strength before cold work = 370 MPa

yield strength after cold work = 437.87 MPa

ultimate strength before cold work = 440 MPa

ultimate strength after cold work = 550 MPa

Explanation:

given data

AISI 1018 steel

cold work factor W = 20% = 0.20

to find out

yield strength and ultimate strength before and after the cold-work operation

solution

we know the properties of AISI 1018 steel is

yield strength σy =  370 MPa

ultimate tensile strength σu = 440 MPa

strength coefficient K = 600 MPa

strain hardness n = 0.21

so true strain is here ∈ = ln\frac{1}{1-0.2} = 0.223

so

yield strength after cold is

yield strength = K \varepsilon ^n

yield strength =  600*0.223^{0.21)

yield strength after cold work = 437.87 MPa

and

ultimate strength after cold work is

ultimate strength = \frac{\sigma u}{1-W}

ultimate strength = \frac{440}{1-0.2}

ultimate strength after cold work = 550 MPa

8 0
3 years ago
What is the difference between filler and electrode in Welding? Can a filler be an electrode? Can an electrode be a filler? Why?
Vlada [557]

Explanation:

<u>Filler:</u>

  Filler is the material rod is used when we are joining two material by using welding process.If thickness of work piece is more so it will become compulsory to provide some filler material for making the welding join to withstand high stresses.

<u>Electrode:</u>

  Electrode is the element which is used to complete the electric circuit in welding .Some time electrode is connected with positive terminal and some time with negative terminal ,it depends on the requirement of welding process.In Tungsten inert gas welding electrode is connected negative terminal but on the other hand Metal inert gas welding electrode is connected with positive terminal.Electrode can be consumable non-consumable depends on the condition.

Yes electrode can be work as filler material ,in Metal inert gas welding wire is used as electrode as well as filler material.In Metal inert gas welding consumable electrode is used on the other hand Tungsten inert gas welding non-consumable electrode is used.In Tungsten inert gas welding if thickness of work pieces is less than 5 mm then no need to used any filler material but if thickness is more than 5 mm then we have to use filler material.

8 0
3 years ago
Other questions:
  • At a high school science fair, Connor won first place for his replica of the Golden Gate Bridge. Connor liked the project so muc
    5·1 answer
  • True or False: Drag and tailwind are examples of a contact force.<br> tyy guyss
    14·1 answer
  • Sketch the velocity profile for laminar and turbulent flow.
    15·1 answer
  • 1. How many types of pumps are present?​
    14·1 answer
  • A driver on a leveltwo-lane highway observes a
    6·1 answer
  • Write analgorithm and a C code to calculate the sum and average value of an array12elements.For example: Array_Temperaure=[10, 1
    6·1 answer
  • If a pendulum takes 2 sec to swing in each direction, find the period and the frequency of the swing
    15·1 answer
  • Dunno what to ask, okbye
    5·1 answer
  • Stress that acts in the plane of a cut section, rather than at right angles to the section is called:_______
    6·1 answer
  • 3. Aqueous cleaners are
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!